public class TeraSort
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.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(org.apache.hadoop.mapreduce.JobContext job) |
static boolean |
getUseSimplePartitioner(org.apache.hadoop.mapreduce.JobContext job) |
static void |
main(String[] args) |
int |
run(String[] args) |
static void |
setOutputReplication(org.apache.hadoop.mapreduce.Job job,
int value) |
static void |
setUseSimplePartitioner(org.apache.hadoop.mapreduce.Job job,
boolean value) |
public static boolean getUseSimplePartitioner(org.apache.hadoop.mapreduce.JobContext job)
public static void setUseSimplePartitioner(org.apache.hadoop.mapreduce.Job job,
boolean value)
public static int getOutputReplication(org.apache.hadoop.mapreduce.JobContext job)
public static void setOutputReplication(org.apache.hadoop.mapreduce.Job job,
int value)
public int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.