编译并安装 Ambari 2.4.2,编译前的开发环境准备
第1步:下载并构建Ambari 2.4.2源
转到镜像文件地址并找到建议的镜像下载。验证下载的过程描述在下载过程验证
wget http://www.apache.org/dist/ambari/ambari-2.4.2/apache-ambari-2.4.2-src.tar.gz (使用上面建议的镜像)
tar xfvz apache-ambari-2.4.2-src.tar.gz
cd apache-ambari-2.4.2-src
mvn versions:set -DnewVersion=2.4.2.0.0
pushd ambari-metrics
mvn versions:set -DnewVersion=2.4.2.0.0
popd
Note: 如果因为缺少jms,jmxri,jmxtools等工具导致编译ambari-metrics包时产生错误:
[ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-kafka-sink:jar:2.2.2-0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to acce