示例代码是在这里 http://wiki.apache.org/hadoop/WordCount了解Hadoop的WORDCOUNT例如
我理解的逻辑,但是,我注意到,在主要功能,它仅规定了输入和输出路径,但是,它从来没有指明是什么关键和价值。
如何地图和减少功能可以认识到这一点?
public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException
public void reduce(Text key, Iterable<IntWritable> values, Context context)
现在更有意义,非常感谢! – 2013-03-06 07:13:20
很高兴能帮到你! – aa8y 2013-03-06 08:11:31