本文就Cent 6.5 x86_64 环境下 Hadoop 2.2.0 eclipse plugs编译加以描述,具体如下:
下载eclipse tar包,地址如下:
[root@MasterSlave ~]# wget http://mirrors.tuna.tsinghua.edu.cn/eclipse//technology/epp/downloads/release/kepler/SR2/eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
解压包如下:
[root@MasterSlave ~]# tar zxvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
下载hadoop2x-eclipse-plugin,地址如下:
[root@MasterSlave ~]# wget https://codeload.github.com/winghc/hadoop2x-eclipse-plugin/zip/master
解压包如下:
[root@MasterSlave ~]# unzip master
[root@MasterSlave ~]# cd hadoop2x-eclipse-plugin-mastersrc/contrib/eclipse-plugin
编译如下:
[root@MasterSlave ~]# ant jar -Dversion=2.2.0 -Declipse.home=/opt/eclipse -Dhadoop.home=/usr/share/hadoop
最后出现如下提示,说明编译成功。
contrib/eclipse-plugin/lib/netty-3.6.2.Final.jar
[jar] Building jar: /root/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.2.0.jar
BUILD SUCCESSFUL
包的位置:
Building jar: /root/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.2.0.jar