Hadoop-2.3.0的Eclipse插件编译
Hadoop-2.3.0的Eclipse插件编译
#cd /usr/local/src/hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin
#ant jar -Dversion=2.3.0 -Declipse.home=/usr/local/eclipse -Dhadoop.home=/home/hm/hadoop
编译很简单:经常出现的问题。因为Proxy问题不能获得ivy-2.1.0.jar,需要设置代理
Can't get http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
If you already have your ivy2 cache with all the artifacts
then you can manually download/copy the ivy.jar and place that in the ivy
folder and do an ant build with -Doffline=true.
为ant,ivy设置goagent代理
首先启动goagent
export ANT_OPTS="-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8087"
编译出来的插件:
/usr/local/src/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.3.0.jar
将hadoop-eclipse-plugin-2.3.0.jar文件放到Eclipse的dropins目录,重启Eclipse即可看到该插件已生效。
有需要的同学请留下QQ邮箱,我发给你。
说明:测试了一下,目前hadoop-eclipse-plugin-2.3.0还有些问题,
建议继续使用hadoop-eclipse-plugin-2.2.0。
===========================================================================
Hadoop2.3.0的Eclipse插件
http://blog.csdn.net/twlkyao/article/details/17334693
编译Hadoop 2.x Hadoop-eclipse-plugin插件
http://blog.csdn.net/twlkyao/article/details/17334833
编译hadoop 1.2.1 Hadoop-eclipse-plugin插件
http://kangfoo.u.qiniudn.com/article/2013/12/hadoop-eclipse-plugin-1.2.1/
============================================