hadoop MultipleInputs fails with ClassCastException

前端 未结 2 1212
别跟我提以往
别跟我提以往 2020-12-06 09:50

My hadoop version is 1.0.3,when I use multipleinputs, I got this error.

java.lang.ClassCastException: org.apache.hadoop.mapreduce.lib.input.TaggedInputSplit         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 10:48

    I had this same problem, but the actual problem was that I was still setting the InputFormat after setting up the MultipleInputs:

    job.setInputFormatClass(SequenceFileInputFormat.class);
    

    Once I removed this line everything worked fine.

提交回复
热议问题