Configure Eclipse for MapReduce:
1. Download load eclipse Europa or Indigo
2. Download Hadoop eclipse plugin eg: hadoop-eclipse-plugin-1.0.3.jar
3. Copy jar in eclipse plugin folder
4. Open eclipse
5. Add Map/Reduce server
6. Add New DFS Location
Location name: localhost
Map/Reduce Master:
port: 9001
DFS Master
port: 9000
Finish
7. New -> others -> Map/Reducer Project
-> Project Name(WordCount) -> configure hadoop file path -> finish
8. Right click on src -> Class -> WorldCount -> finish
9. copy code from http://wiki.apache.org/hadoop/WordCount
10. Give input and outfile paths
eg: /home/yash/inputtext.txt /home/yash/outputtext.txt
11. Run as (Run on Hadoop)
1. Download load eclipse Europa or Indigo
2. Download Hadoop eclipse plugin eg: hadoop-eclipse-plugin-1.0.3.jar
3. Copy jar in eclipse plugin folder
4. Open eclipse
5. Add Map/Reduce server
6. Add New DFS Location
Location name: localhost
Map/Reduce Master:
port: 9001
DFS Master
port: 9000
Finish
7. New -> others -> Map/Reducer Project
-> Project Name(WordCount) -> configure hadoop file path -> finish
8. Right click on src -> Class -> WorldCount -> finish
9. copy code from http://wiki.apache.org/hadoop/WordCount
10. Give input and outfile paths
eg: /home/yash/inputtext.txt /home/yash/outputtext.txt
11. Run as (Run on Hadoop)
No comments:
Post a Comment