centos使用代理编译hadoop

centos 编译hadoop 设置代理

1.on  ~/.bashrc

export http_proxy=”http://proxy01.cd.intel.com:911″
export https_proxy=”http://proxy01.cd.intel.com:911″
export ftp_proxy=$http_proxy
export ANT_OPTS=”-Dhttp.proxyHost=proxy01.cd.intel.com -Dhttp.proxyPort=911 -Dhttps.proxyHost=proxy01.cd.intel.com -Dhttps.proxyPort=911″

alias m2proxy=”mvn $ANT_OPTS”
alias m2install=”m2sucks install -DskipTests”
alias m2test=”m2sucks test”

 

2.use the command  “m2proxy” instead of  “mvn”