Handling Error: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected

后端 未结 2 401
甜味超标
甜味超标 2020-12-11 09:34

I am using CDH4 and have written a MapReduce application using the new mapreduce API. I have compiled it against hadoop-core-1.0.3.jar and when I run it on my Hadoop cluster

2条回答
  •  一向
    一向 (楼主)
    2020-12-11 10:20

    The answer in the link I posted in the question above asked to compile against Hadoop 2.0 library. Incidentally the post Hadoop 1.0, instead of using one single Hadoop Core jar for compilation, two (or maybe more) different jars are to be used.

    I used: hadoop-common-2.0.2-alpha.jar hadoop-mapreduce-client-core-2.0.2-alpha.jar

    for compiling my code and after that it ran fine w/o giving the aforementioned error.

提交回复
热议问题