Using Hadoop for the First Time, MapReduce Job does not run Reduce Phase

后端 未结 1 977
借酒劲吻你
借酒劲吻你 2021-01-13 08:21

I wrote a simple map reduce job that would read in data from the DFS and run a simple algorithm on it. When trying to debug it I decided to simply make the mappers output a

相关标签:
1条回答
  • 2021-01-13 08:39

    The signature of your reduce method is wrong. Your method signature contains Iterator<Text>. You have to pass an Iterable<Text>.

    Your code does not override the reduce method of the Reducer base class. Because of this, the default imlementation provided by the Reducer base class is used. This implementation is an identity function.

    Use the @Override annotation to anticipate errors like this one.

    0 讨论(0)
提交回复
热议问题