eclipse中安装hadoop-eclipse-plugin-1.2.1插件
1.将下载好的插件"hadoop-eclipse-plugin-1.2.1.jar"拷贝到"eclipse/plugins/"目录下,然后启动eclipse
2.菜单"Window"->"Open Perspective"->"Other"->
3.选择"Map/Reduce","OK"->
4.此时,在左侧出现”DFS Locations"
5."Window"->"Preferences"->
6.选择"Hadoop Map/Reduce",在右侧选择hadoop安装目录,"OK"->
7.在下方切换到"Map/Reduce Locations"面板,"New Hadoop Location..."->
8."Location name"设置为loalhost(可随意),"Map/Reduce Master"中"Port"设置为9001(在配置文件"mapred-site.xml"中设置的端口),"DFS Master"中"Port"设置为9000(在配置文件"core-site.xml"中设置的端口),然后"Finish"即可。