windows7 eclipse 连接 hdoop2.6.0

  1. 编译eclipse插件

    准备工具 :ant,eclipse,hadoop2.6.0,插件编译包

插件编译包获取地址 :https://github.com/winghc/hadoop2x-eclipse-plugin

zip打包下载,解压该文件

在解压文件的 \master\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin目录下

打开 build.xml,修改 <target name="compile" depends="init, ivy-retrieve-common" unless="skip.contrib">

                          为<target name="compile"  unless="skip.contrib">

不去掉可能会导致ant编译时 在ivy-retrieve-common:的地方卡着不动

在解压文件的 \master\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin目录下执行ant命令

eclipse的本地目录,与hadoop的本地目录按自己实际位置填写

windows7 eclipse 连接 hdoop2.6.0_第1张图片

编译成功;插件生成地址在

在解压文件 :\master\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin下


2.eclipse安装插件并配置

将生成的hadoop-eclipse-plugin-2.6.0.jar复制到eclipse下的plugins目录下

启动eclipse,

  • 配置 hadoop 安装目录

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

  • 配置Map/Reduce 视图

window ->Open Perspective -> other->Map/Reduce -> 点击“OK”

windows → show view → other->Map/Reduce Locations-> 点击“OK”

注意开启本地的telnet服务

检查http://master:50070 ,能否访问,即hdfs管理界面,master为master的IP地址

打开小象进行配置

windows7 eclipse 连接 hdoop2.6.0_第2张图片

配置终点为图示四个箭头所指的位置,Host:为master的IP,端口号你配置的端口号,DFS Master的端口号为你配置的端口号,User name:这块我参考别的论文,说是按照按照hadoop的名字来的,我就把win7的用户名改成了hadoop,然后填写的hadoop.

windows7 eclipse 连接 hdoop2.6.0_第3张图片

3.搞定

这样就算弄完了

参考博客:

http://my.oschina.net/muou/blog/408543

http://www.aboutyun.com/thread-6950-1-1.html

http://www.aboutyun.com/thread-7780-1-1.html


 


你可能感兴趣的:(windows7 eclipse 连接 hdoop2.6.0)