【发布时间】:2014-03-13 12:58:15
【问题描述】:
我了解,为了在 Hadoop MapReduce 中包含组合器,包含以下行(我已经完成了);
conf.setCombinerClass(MyReducer.class);
我不明白的是,我在哪里实际实现了组合器的功能。我是否在 MyReducer 下创建 combine{} 方法?比如reduce方法;
public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { }
非常感谢!
【问题讨论】:
标签: java hadoop mapreduce elastic-map-reduce