Class Not Found Exception in Mapreduce wordcount job

前端 未结 9 1223
[愿得一人]
[愿得一人] 2020-12-11 02:03

i am trying to run a wordcount job in hadoop.but always getting a class not found exception.I am posting the class that i wrote and the command i using to run the job

相关标签:
9条回答
  • 2020-12-11 02:35

    You have to add this method

    job.setJarByClass(WordCount.class);

    before invoking the method

    job.waitForCompletion(true);

    As like following:

    job.setJarByClass(WordCount.class);

    job.waitForCompletion(true);

    0 讨论(0)
  • 2020-12-11 02:43

    job.setJarByClass(WordCount.class); job.waitForCompletion(true);

    0 讨论(0)
  • 2020-12-11 02:44

    I got this to work using JobConf#setJar(String)

    0 讨论(0)
提交回复
热议问题