I am trying to implement one sample word count program using Hadoop. I have downloaded and installed Hadoop 2.0.0
. I want to do this sample program using Eclipse because i think later in my real project I have to use Eclipse only.
I am not able to find Hadoop related jar files like hadoop-core.jar
and other required jar files. I searched in all the folders of 2.0 hadoop but couldn't find those files. Those same files are available in 1.0 version of Hadoop but not in 2.0 version. I would like to know where can I get these files?
I am not able to find much information about 2.0 version.
please help
By default, all the jar files are available in Hadoop folder.
For this you need to add a package name to your . java file according to the directory structure , for example home. hduser. dir and while running the hadoop jar command specify the class name with the package structure, for example home.
Actually, I faced a similar issue in the beginning. Apparently, there is no hadoop-core.jar
for version 2. You'll have to download the Hadoop Common and MapReduce Client Core jars and use them both. I am sure it'll solve your problems. Hope this helps!
Edit: I just updated the links such that people can choose the appropriate version from the repository since we now come way past the initial version 2.
Including JARs in folders listed below worked for me:
share\hadoop\common share\hadoop\common\lib share\hadoop\mapreduce share\hadoop\mapreduce\lib share\hadoop\yarn share\hadoop\yarn\lib
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With