public class TeraSort extends Configured implements Tool
To run the program: bin/hadoop jar hadoop-*-examples.jar terasort in-dir out-dir
| Modifier and Type | Class and Description |
|---|---|
static class |
TeraSort.SimplePartitioner
A total order partitioner that assigns keys based on their first
PREFIX_LENGTH bytes, assuming a flat distribution.
|
| Constructor and Description |
|---|
TeraSort() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getOutputReplication(JobContext job) |
static boolean |
getUseSimplePartitioner(JobContext job) |
static void |
main(String[] args) |
int |
run(String[] args)
Execute the command with the given arguments.
|
static void |
setOutputReplication(Job job,
int value) |
static void |
setUseSimplePartitioner(Job job,
boolean value) |
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static boolean getUseSimplePartitioner(JobContext job)
public static void setUseSimplePartitioner(Job job, boolean value)
public static int getOutputReplication(JobContext job)
public static void setOutputReplication(Job job, int value)
public int run(String[] args) throws Exception
ToolCopyright © 2013 Apache Software Foundation. All rights reserved.