elephant-bird
elephant-bird copied to clipboard
InputFormat wrapper doesn't work on CDH4
Trying to use DeprecatedInputFormatWrapper on CDH4, getting the following exception:
java.lang.NoSuchMethodException: org.apache.hadoop.mapreduce.TaskAttemptContext.getCounter(java.lang.String, java.lang.String)
at java.lang.Class.getMethod(Class.java:1624)
at com.twitter.elephantbird.util.HadoopCompat.
TaskAttemptContext doesn't contain a getCounter method.
I tested with standard Apache hadoop. It does have that method: see Line 69
I have to admit DeprecatedInputFormatWrapper was the last thing I tested..
CDH4 has the same method too. How are you running your job?
I'm building and running on CDH 4.1.2, and it doesn't have the method. You can see here: http://grepcode.com/file/repository.cloudera.com/content/repositories/releases/org.apache.hadoop/hadoop-core/2.0.0-mr1-cdh4.1.2/org/apache/hadoop/mapreduce/TaskAttemptContext.java?av=f
I've probably should have mentioned I'm using the MRv1 version and not YARN.