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地址。