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
At below location you can find folder named by distribution which you have installed , inside that there is a jar folder. /opt/cloudera/parcels/[cloudera distribution]/jars/
Example : /opt/cloudera/parcels/CDH-5.4.10/jars
We can get the jar files from https://mvnrepository.com website.
Example - https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-core/1.2.1
Including JARs in folders listed below worked for me:
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.
hadoop-core-${HADOOP_VERSION}.jar is in
directory, not ${HADOOP_HOME} directory.
On hadoop 2.7.2, I had to set it to the same as HADOOP_COMMON_HOME.