标签:ant tps pre nbsp yun ali alt tar profile
hadoop 源码编译
1、准备jar
1) hadoop-2.7.2-src.tar.gz
2) jdk-8u144-linux-x64.tar.gz
3) apach-ant-1.9.9-bin.tar.gz
4) apache-maven-3.0.5-bin.tar.gz
5) protobuf-2.5.0.tar.gz
2、
2.1、maven 配置
下载 3.0.5 版本 https://archive.apache.org/dist/maven/maven-3/3.0.5/binaries/
放到 /opt/module 下面 tar -zxvf 解压
再 "vi conf/settings.xml" 配置镜像地址
<mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
配置maven路径 vi /etc/profile
#MAVEN_HOME export MAVEN_HOME=#MAVEN_HOME export MAVEN_HOME=/opt/module/apache-maven-3.0.5 export PATH=$PATH:$MAVEN_HOME/bin
2.2、
下载 https://archive.apache.org/dist/ant/binaries/
解压,再
#ANT_HOME export ANT_HOME=/opt/module/apache-ant-1.9.9 export PATH=$PATH:$ANT_HOME/bin
安装 glibc-header, g++, make, cmake
#yum install glibc-headers #yum install gcc-c++
#yum install make
#yum install cmake
标签:ant tps pre nbsp yun ali alt tar profile
原文地址:https://www.cnblogs.com/Jomini/p/11408034.html