Professional Documents
Culture Documents
Step-1
Open Eclipse and Make Java Project.
In eclipse Click on File menu-> new -> Java Project. Write there your project name. Here is
WordCount. Make sure Java version must be 1.6 and above. Click on Finish.
Step-2
Make Java class File and write a code.
Click on WordCount project. There will be ‘src’ folder. Right click on ‘src’ folder -> New ->
Class. Write Class file name. Here is Wordcount. Click on Finish.
Copy and Paste below code in Wordcount.java. Save it.You will get lots of error but don’t panic.
It is because of requirement of external library of hadoop which is required to run mapreduce
program.
Step-3
Add external libraries from hadoop.
Right click on WordCount Project -> Build Path -> Configure Build Path -> Click on Libraries -
> click on ‘Add External Jars..’ button.