public class WordCount extends Object
To run: mapreduce -libjars mapreduce-examples.jar com.aliyun.odps.mapreduce.examples.WordCount in-tbl out-tbl
Modifier and Type | Class and Description |
---|---|
static class |
WordCount.SumCombiner
A combiner class that combines map output by sum them.
|
static class |
WordCount.SumReducer
A reducer class that just emits the sum of the input values.
|
static class |
WordCount.TokenizerMapper
Counts the words in each record.
|
Constructor and Description |
---|
WordCount() |
public static void main(String[] args) throws OdpsException
OdpsException
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.