Seems like you are using the Gora built against Apache Hadoop distribution, on CDH4. Try compiling them against CDH4 or try using CDH3
Since the Class on 1.x<http://hadoop.apache.org/docs/r1.0.1/api/org/apache/hadoop/mapreduce/TaskAttemptContext.html>was converted to interface on 2.x<http://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapreduce/TaskAttemptContext.html>of Hadoop and CDH4 has back ported<http://archive.cloudera.com/cdh4/cdh/4/hadoop/api/org/apache/hadoop/mapreduce/TaskAttemptContext.html>them. On Thu, Oct 4, 2012 at 1:04 AM, Bai Shen <[email protected]> wrote: > I'm using Nutch 2 on CDH4. Nutch uses Gora to talk to HBase. I'm getting > the following error. Any suggestions on how to fix this? > > Thanks. > > 12/10/03 15:33:59 WARN mapred.LocalJobRunner: job_local_0001 > java.lang.IncompatibleClassChangeError: Found interface > org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected > at > org.apache.gora.mapreduce.GoraOutputFormat.getRecordWriter(GoraOutputFormat.java:83) > at > org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:523) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:626) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:325) > at > org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:263) > > -- -- Ashwanth Kumar

