public class MapredWordCount
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
MapredWordCount.MapClass
Counts the words in each line.
|
static class |
MapredWordCount.Reduce
A reducer class that just emits the sum of the input values.
|
| Constructor and Description |
|---|
MapredWordCount() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
int |
run(String[] args)
The main driver for word count map/reduce program.
|
public int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolIOException - When there is communication problems with the
job tracker.ExceptionCopyright © 2020 Apache Software Foundation. All rights reserved.