Class Not Found Exception in Mapreduce wordcount job

前端 未结 9 1337
[愿得一人]
[愿得一人] 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:24

    try job.setJar("wordcount.jar");, where wordcount.jar is the jar file that you are going to package to. This method works for me, but NOT setJarByClass!

提交回复
热议问题