Running wordcount program


7 Answer(s)


This means to say that the Jar u are trying to run is not in the classpath of the hadoop installation

Still problem not rectified....

Where did you get the instructions to run the word count program?

@deepthi: I Tried setting the path according to the given instructions. Can you please explain in detail.

@mohan: I got these instructions from Karan's Google drive.

Hi Galib,
Hadoop didn't able to find the WordCount class at com.eng.demo.WordCount.
Commands are case-sensitive including class name. Please check whether you wrote it correctly.

Hi Galib,
Please replace com.eng.demo.WordCount with WordCount.

Please share the output snapshot.

hi Galib,

The primary issue is, you are trying to execute a wrong class file. First find out what is the name of wordcount class within class3.jar using below step

tar -tvf class3.jar

once you see the exact class name for word count execute the class using

hadoop jar com.eng.demo.wordcount

I have a youtube video which explains how to create a wordcount program in eclipse, steps to create a jar and steps to execute the wordcount, hope the below link helps.

https://www.youtube.com/watch?v=VzKGdM4hc74