eclipse中集成hadoop插件
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