编译hadoop2.2.0的eclipse插件流程总结

来源:互联网 发布:seo工作职责 编辑:程序博客网 时间:2024/05/01 04:06

1. 下载插件代码:

http://pan.baidu.com/s/1kT0xz3T


2. 编译插件:

确保安装配置好了jdk、ant,下载好了eclipse、hadoop:

解压插件代码后进入目录:

hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin

进行编译(修改成自己的eclipse.home和hadoop.home):

ant jar -Dversion=2.2.0 -Declipse.home=/usr/eclipse -Dhadoop.home=/home/hadoop/ha/hadoop-2.2.0


之后就可以在hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/下找到编译好的jar文件了:

hadoop-eclipse-plugin-2.2.0.jar


3. 把插件复制到eclipse/plugins/下面,重启eclipse,进行配置即可


4. 若发现无法连接到hdfs,请将配置的localhost改为127.0.0.1,或其它ip地址。

0 0
原创粉丝点击