Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remove leftover reference to mirrors

Build and install Ambari 2.4.0

 
Info
Refer Ambari Development for prerequisites and additional information on how to build Apache Ambari.

 

Step 1: Download and build Ambari 2.4.0 source

...

Go to http://www.apache.org/dyn/closer.cgi/ambari/ambari-2.4.0 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://wwwarchive.apache.org/dist/ambari/ambari-2.4.0/apache-ambari-2.4.0-src.tar.gz (use the suggested mirror from above)
tar xfvz apache-ambari-2.4.0-src.tar.gz
cd apache-ambari-2.4.0-src
mvn versions:set -DneVersion=2.4.0.0.0

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

 

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

...

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

...

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

...

Note: You need to have tools such as rpm-build tool, brunch, etc.  For details on prerequisites, please see Ambari Development.

Step 2: Install Ambari Server

Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/

...

Code Block
apt-get install ambari-server*.deb   #This should also pull in postgres packages as well.

Step 3: Setup and Start Ambari Server

Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:

...

Code Block
ambari-server start

Step 4: Install and Start Ambari Agent on All Hosts

Note: This step needs to be run on all hosts that will be managed by Ambari.

...

Code Block
ambari-agent start

Step 5: Deploy Cluster using Ambari Web UI

Open up a web browser and go to http://<ambari-server-host>:8080.

...