public class TestOrderedWordCount
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
TestOrderedWordCount.IntSumReducer |
static class |
TestOrderedWordCount.MyOrderByNoOpReducer
Shuffle ensures ordering based on count of employees per department
hence the final reducer is a no-op and just emits the department name
with the employee count per department.
|
static class |
TestOrderedWordCount.TokenizerMapper |
| Constructor and Description |
|---|
TestOrderedWordCount() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tez.dag.api.DAG |
createDAG(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> commonLocalResources,
org.apache.hadoop.fs.Path stagingDir,
int dagIndex,
String inputPath,
String outputPath,
boolean generateSplitsInClient,
boolean useMRSettings,
int intermediateNumReduceTasks,
int maxDataLengthThroughIPC,
int exceedDataLimit) |
static void |
main(String[] args) |
int |
run(String[] args) |
public org.apache.tez.dag.api.DAG createDAG(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> commonLocalResources,
org.apache.hadoop.fs.Path stagingDir,
int dagIndex,
String inputPath,
String outputPath,
boolean generateSplitsInClient,
boolean useMRSettings,
int intermediateNumReduceTasks,
int maxDataLengthThroughIPC,
int exceedDataLimit)
throws Exception
Exceptionpublic int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionCopyright © 2020 Apache Software Foundation. All rights reserved.