1. 程式人生 > >eclipse中集成hadoop插件

eclipse中集成hadoop插件

eclips 新建 bsp ive win hadoop安裝 系統 new 集成

1.下載並安裝eclipse
2.https://github.com/winghc/hadoop2x-eclipse-plugin
3.下載插件到eclipse的插件目錄

技術分享

4.配置hadoop安裝目錄
打開eclipse
window ->preference -> hadoop Map/Reduce -> Hadoop installation directory

技術分享

5.配置Map/Reduce視圖
window ->Open Perspective -> other->Map/Reduce -> 點擊“OK”

技術分享


windows → show view → other->Map/Reduce Locations-> 點擊“OK”

技術分享

技術分享


6.在“Map/Reduce Locations” Tab頁 點擊圖標<大象+>或者在空白的地方右鍵,選擇“New Hadoop location…”,彈出對話框“New hadoop location…”,
進行相應配置

技術分享


MR Master和DFS Master配置必須和mapred-site.xml和core-site.xml等配置文件一致

技術分享

7.打開Project Explorer,查看DS文件系統。

8.新建MapReduce任務 前提是 啟動了 hadoop

File->New->project->Map/Reduce Project->Next

技術分享

技術分享

技術分享

eclipse中集成hadoop插件