Why hadoop does not recognize my Map class?

后端 未结 1 1263
天涯浪人
天涯浪人 2021-01-20 23:08

I am trying to run my PDFWordCount map-reduce program on hadoop 2.2.0 but I get this error:

13/12/25 23:37:26 INFO mapreduce.Job: Task Id : attempt_1388041362368         


        
相关标签:
1条回答
  • 2021-01-20 23:55

    I found a way to overcome this problem, even though I couldn't understand what was the problem actually.

    When I want to export my java project as a jar file in eclipse, I have two options:

    1. Extract required libraries into generated JAR
    2. Package required libraries into generated JAR

    I don't know exactly what is the difference or is it a big deal or not. I used to choose second option, but if I choose first option, I can run my job using this command:

    yarn jar pdf.jar /in /out
    
    0 讨论(0)
提交回复
热议问题