Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are hadoop jar files in hadoop 2? [closed]

Tags:

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

like image 659
Shekhar Avatar asked Mar 03 '13 16:03

Shekhar


People also ask

Where are the JAR files in Hadoop?

By default, all the jar files are available in Hadoop folder.

What is the command used to run the Hadoop jar file?

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.


2 Answers

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.

like image 172
aa8y Avatar answered Sep 25 '22 00:09

aa8y


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    
like image 30
Anonymous Avatar answered Sep 27 '22 00:09

Anonymous