Running Map Reduce Program in Eclipse: C:/hadoop
Running Map Reduce Program in Eclipse: C:/hadoop
1. Down load and setup Apache Hadoop. Download tar.gz file for Hadoop ver 3.2.1
from link: https://hadoop.apache.org/release/3.2.1.html
3. Add the location of the Hadoop directory to your system environment variables as
HADOOP_HOME. Eg. if you have extracted Hadoop at C:/hadoop then add
HADOOP_HOME=C:/hadoop as a system environment variable.
4. Add Hadoop bin to your system path variable. For Eg if Hadoop is present at
C:/hadoop, add C:/hadoop/bin to the system path.
5. Download winutil binary files from link below Put them all in hadoop/bin folder
if they are already not present in it.
https://github.com/cdarlint/winutils/tree/master/hadoop-3.2.1/bin
6. Download Eclipse IDE from
https://www.eclipse.org/downloads/packages/release/2020-12/r/eclipse-ide-java-
developers
8. Run Eclipse.
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
</dependency>
</dependencies>