github地址git
下载ant并进行配置
解压后,
sudo gedit /etc/profile 进行设置:
添加export ANT_HOME=/home/hadoop/apache-ant-1.9.7
修改export PATH=${JAVA_HOME}/bin:
$ANT_HOME/bin:$PATH
而后source /etc/profile 保存设置
查看版本ant -version
下载hadoop2x的插件
定位到下载的那个文件的plugin文件夹后,执行:
ant jar -Dversion=2.7.2 -Declipse.home=
/home/hadoop/eclipse -Dhadoop.home=/home/hadoop/hadoop