Class Not Found Exception in Mapreduce wordcount job Class Not Found Exception in Mapreduce wordcount job hadoop hadoop

Class Not Found Exception in Mapreduce wordcount job


Try adding this

Job job = new Job(conf, "wordcount");job.setJarByClass(WordCount.class);


I also got the same issue and fixed it by removing same WordCount.class file in the same directory from where I am executing my jar. Looks like it is taking the class out side the jar. Try


I suspect this :

14/01/27 13:16:02 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).

I got the same error when using CDH4.6 and it got solved after resolving the above warning.