I’m using hadoop “2.0.0-cdh4.1.1” and I try to use LongSumReducer for my wordCount program.
job.setReducerClass((new LongSumReducer<Text>()).getClass());
However there’s a compilation error:
setReducerClass(java.lang.Class<? extends org.apache.hadoop.mapreduce.Reducer>) in
org.apache.hadoop.mapreduce.Job cannot be applied to (java.lang.Class<capture#402 of
extends org.apache.hadoop.mapred.lib.LongSumReducer>)
Is it implementing the correct interface or extending the correct class for the reducer implementation. The exception says a package difference in the implementation method required vs the usage (new vs old hadoop api)