Hadoop with Eclipse tool
Hadoop Configuration with Eclipse IDE for development
1. Go inside user dir and if you installed eclipse as root
cd /opt/eclipse/plugins/
2. Put plugins
cp hadoop-eclipse-plugin-1.0.4 /opt/eclipse/plugins/
3. Start hadoop
4. Start eclipse(you may start from shell write eclipse and close shell)
5. Right click on mapreduce location beside consol in eclipse and click on new hadoop location.
6. On define hadoop location prompt fill
location name=111.111.1.111
map/reduce master dfs master
host=111.111.1.111
port=50310 port 50311
click finish
ur hdfs is configured
7. In updation right click on dfs location tab and click refresh/reconnect.
8. file->new project-> Mapreduce Project->projectName->
(configure hadoop location where you installed it.)
then write mapreduce/wordcount program.
1. Go inside user dir and if you installed eclipse as root
cd /opt/eclipse/plugins/
2. Put plugins
cp hadoop-eclipse-plugin-1.0.4 /opt/eclipse/plugins/
3. Start hadoop
4. Start eclipse(you may start from shell write eclipse and close shell)
5. Right click on mapreduce location beside consol in eclipse and click on new hadoop location.
6. On define hadoop location prompt fill
location name=111.111.1.111
map/reduce master dfs master
host=111.111.1.111
port=50310 port 50311
click finish
ur hdfs is configured
7. In updation right click on dfs location tab and click refresh/reconnect.
8. file->new project-> Mapreduce Project->projectName->
(configure hadoop location where you installed it.)
then write mapreduce/wordcount program.
Comments
Post a Comment