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
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);
job.setJarByClass(WordCount.class); job.waitForCompletion(true);
I got this to work using JobConf#setJar(String)