天天看點

eclipse中內建hadoop插件

1.下載下傳并安裝eclipse

2.https://github.com/winghc/hadoop2x-eclipse-plugin

3.下載下傳插件到eclipse的插件目錄 

eclipse中內建hadoop插件

4.配置hadoop安裝目錄

 打開eclipse

window ->preference -> hadoop Map/Reduce -> Hadoop installation directory

eclipse中內建hadoop插件

5.配置Map/Reduce視圖

window ->Open Perspective -> other->Map/Reduce -> 點選“OK”

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

eclipse中內建hadoop插件
eclipse中內建hadoop插件

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

進行相應配置

eclipse中內建hadoop插件

MR Master和DFS Master配置必須和mapred-site.xml和core-site.xml等配置檔案一緻

eclipse中內建hadoop插件

7.打開Project Explorer,檢視DS檔案系統。

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

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

eclipse中內建hadoop插件
eclipse中內建hadoop插件
eclipse中內建hadoop插件

作者:Rick__想太多先森

繼續閱讀