1.载
载winghc/hadoop2x-eclipse-plugin 压缩包
2.提取
提取本路径(C:\hadoop2x-eclipse-plugin)
3.搭建
命令行窗口打'\src\contrib\eclipse-plugin'
C:\>cd C:\hadoop2x-eclipse-plugin\src\contrib\eclipse-plugin
运行ANT搭建
C:\hadoop2x-eclipse-plugin\src\contrib\eclipse-plugin>ant jar -Dversion=2.2.0 -Declipse.home=C:/IDE/sts-3.5.0 -Dhadoop.home=c:/hadoopBuildfile: C:\hadoop2x-eclipse-plugin\src\contrib\eclipse-plugin\build.xml
注意:载ivy-2.1.0.jar需要网络连接
4. 安装
搭建功'\src\contrib\eclipse-plugin'.内'hadoop-eclipse-plugin-2.2.0.jar' 拷贝jar文件并其粘贴IDE插件所路径
5. 配置
Eclipse启状态重新启否则要启
a. 进入Windows-->Open Perspective-->Other并选择Map/Reduce
b. 点击New Hadoop location...(蓝色象图标)并定义Hadoop路径运行MapReduce应用程序点击Finish按钮
Map/Reduce(V2) Master:
Map/Reduce主节点址(任务追踪器)
DFS Master:
布式文件系统主节点址(名称节点)
要解Port数量启Hadoop并浏览器打 localhost:8088/cluster点击Tools --> Configuration 并查找属性
DFS Master
fs.defaultFS hdfs://localhost:9000 core-site.xml
Map/Reduce(V2) Master mapreduce.jobtracker.http.address 0.0.0.0:50030 mapred-default.xml
c. 现我浏览Hadoop文件系统并使用GUI执行同文件/文件夹操作
同我用向导(File --> New --> Other... --> Map/Reduce)轻松创建
转载仅供参考