eclipse中集成hadoop插件

时间:2022-11-29 15:15:15

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”

eclipse中集成hadoop插件

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插件