1.復制hadoop-eclipse-plugin-2.6.0.jar插件到eclipse的plugins目錄下(hadoop2.6的插件,在hadoop自帶上沒有,要上網下載,多試幾個
如果是從ubuntu自帶的軟件中心安裝elcipse的話,則安裝目錄為:/usr/share/eclipse/dropins/sdk/plugins/
不是在/usr/share/eclipse/plugins
sudo cp hadoop-eclipse-plugin-2.6.0.jar /usr/share/eclipse/dropins/sdk/plugins/
?
2.重啟eclipse,配置Hadoop installation directory?? ?
???? 如果插件安裝成功,打開Windows—Preferences后,在窗口左側會有Hadoop Map/Reduce選項,點擊此選項,在窗口右側設置Hadoop安裝路徑。
????
3.配置Map/Reduce Locations
???? 打開Windows—Open Perspective—Other 選擇Map/Reduce,點擊OK
4.在右下方看到Map/Reduce Locations,點擊Map/Reduce Location選項卡,點擊右邊小象圖標,打開Hadoop Location配置窗口:
注意:MR Master和DFS Master配置必須和mapred-site.xml和core-site.xml等配置文件一致
5.測試
用wordcount例子來測試
本文摘自 :https://blog.51cto.com/u