Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Build and install Ambari 2.1.0

...

Step 1: Download and build Ambari 2.1.0

...

source

Go to http://www.apache.org/dyn/closer.cgi/ambari/ambari-2.1.0.1 and find the suggested mirror for download. The process to verify the download is described is at http://www.apache.org/dyn/closer.cgi#verify

Code Block
wget http://www.apache.org/dist/ambari/ambari-2.1.0.1/apache-ambari-2.1.0.1-src.tar.gz (use the suggested mirror from above)
tar xfvz apache-ambari-2.1.0.1-src.tar.gz
cd apache-ambari-2.1.0.1-src
mvn versions:set -DnewVersion=2.0.1.0

pushd ambari-metrics
mvn versions:set -DnewVersion=2.0.1.0
popd

 

Note: If running into errors while compiling the ambari-metrics package due to missing the artifacts of jms, jmxri, jmxtools:

Code Block
[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.1.0.1-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 access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory 

...

Code Block
mvn -B clean install package rpm:rpm -DnewVersion=2.0.1.0 -DskipTests -Dpython.ver="python >= 2.6"

...

Code Block
mvn -B clean install package jdeb:jdeb -DnewVersion=2.0.1.0 -DskipTests -Dpython.ver="python >= 2.6"

...