I'm not entirely sure what the differences are... but according to Cloudera
documentation, upgrading from CDH3 to CDH4 does involve a recompile.
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Release-Notes/cdh4ki_topic_1_6.html



On Sun, Sep 29, 2013 at 8:29 PM, lei liu <liulei...@gmail.com> wrote:

> 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 <pradeep...@gmail.com>
>
>> 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 <liulei...@gmail.com> 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
>>>
>>
>>
>

Reply via email to