HADOOP :: java.lang.ClassNotFoundException: WordCount

前端 未结 1 608
广开言路
广开言路 2021-01-22 15:56

I am using eclipse to export the jar file of a map-reduce program. When i am run the jar using command

 hadoop jar hadoop-prog.jar WordCount /home/temp/input /h         


        
相关标签:
1条回答
  • 2021-01-22 16:10

    If you're trying to run the wordcount provided in the examples, you should run:

    hadoop jar hadoop*examples*.jar wordcount /home/temp/input /home/temp/output
    

    More info on how to run wordcount on this link.

    In general, if you're developing your own Map/Reduce jobs, you should include the full package name of your driver class, so something like this might work:

    hadoop jar wordcount.jar com.something.WordCount /home/temp/input /home/temp/output
    
    0 讨论(0)
提交回复
热议问题