Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # user - Re: IncompatibleClassChangeError


Copy link to this message
-
Re: IncompatibleClassChangeError
lei liu 2013-09-30, 03:29
Yes, My job is compiled in CHD3u3, and I run the job on CDH4.3.1,  but I
use the mr1 of CHD4.3.1 to run the job.

What are the different mr1 of cdh4 and mr of cdh3?

Thanks,

LiuLei
2013/9/30 Pradeep Gollakota <[EMAIL PROTECTED]>

> I believe it's a difference between the version that your code was
> compiled against vs the version that you're running against. Make sure that
> you're not packaging hadoop jar's into your jar and make sure you're
> compiling against the correct version as well.
>
>
> On Sun, Sep 29, 2013 at 7:27 PM, lei liu <[EMAIL PROTECTED]> wrote:
>
>> I use the CDH-4.3.1 and mr1, when I run one job, I am getting the
>> following error.
>>
>> Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
>>
>>         at org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:152)
>>
>>         at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1063)
>>
>>         at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1080)
>>
>>         at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)
>>         at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:992)
>>         at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:945)
>>         at java.security.AccessController.doPrivileged(Nativ
>> e Method)
>>         at javax.security.auth.Subject.doAs(Subject.java:396)
>>
>>         at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1408)
>>
>>         at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:945)
>>         at org.apache.hadoop.mapreduce.Job.submit(Job.java:566)
>>         at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:596)
>>
>>         at com.taobao.hbase.test.RandomKVGenerater.main(RandomKVGenerater.java:248)
>>
>>
>> How can I handle the error?
>>
>> Thanks,
>>
>> LiuLei
>>
>
>