Eclipse Mapreduce Example


b)  Similarly create WordCountReducer.java. Right click on src –> New –> Other –> Map/Reduce folder  and Select Reducer for creating our reducer class WordCountReducer.

 c)  Create the WordCount driver class. Right click on src –> New –> Other –> Map/Reduce folder  and Select MapReducer for creating our reducer class WordCountReducer.

 Once the three classes are saved .class files would have been generated automatically.

4.  Lets create a jar file from the class files. Select WordCount project.

Go to File –> Export –> Java –>  JAR File

Export Jar

Provide the destination folder for JAR files and Jar file name.

wordcount.jar

5.  Copy this wordcount.jar file to hadoop node, and execute the jar file with input files.

 6.  Validate the output results.

output

So, finally we have successfully ran sample mapreduce program Word Count developed in eclipse environment.


Profile photo of Siva

About Siva

Senior Hadoop developer with 4 years of experience in designing and architecture solutions for the Big Data domain and has been involved with several complex engagements. Technical strengths include Hadoop, YARN, Mapreduce, Hive, Sqoop, Flume, Pig, HBase, Phoenix, Oozie, Falcon, Kafka, Storm, Spark, MySQL and Java.

Leave a comment

Your email address will not be published. Required fields are marked *