Skip to main content

WordCount using Eclipse

Starting Eclipse and running MapReduce Program
===============================
Step1: Open the home directory



Step2: Go inside the eclipse directory



Step3: Doube click on the eclipse.exe file to open the eclipse IDE

Step4: Provide the workspace path





Next the eclipse IDE Starts and look like this



Step5: Just close the workbench
After closing the workbench you will see something like below figure



Step6: Now let’s create a project
          Right click in Project explorer
Select → New → Project → Map/Reduce Project

Next
Provide Project Name → Wordcount in the Project name field



Next
Provide Project Name → Wordcount
Next
Configure hadoop installation directory
Click on → Configure hadoop installation directory



Next click → Browse → goto hadoop installation directory I.e,. /usr/local/hadoop → Ok → ok
→ next → finish

Once done you will see something like below figure




Next
Right click on project(Wordcount) → select Class
Give classname → finish


Next edit you code


Once the editing is done
Next step is to run the program
Go to Run → Run Configuration → goto arguments tab and specify the input file and output folder

Next click on Run button
After running you will see the following operation




This ends up running wordcount program using Eclipse

==========================================================
Next we will see how to run wordcount program using by creating Jar and running on command line


Comments

Post a Comment