Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Build and install Ambari 1.7.0

Step 1: Download and build Ambari 1.7.0 source

Code Block
wget http://archive.apache.org/dist/ambari/ambari-1.7.0/ambari-1.7.0.tar.gz
tar xfvz ambari-1.7.0.tar.gz
cd ambari-1.7.0
mvn versions:set -DnewVersion=1.7.0.0


RHEL (CentOS 5 or 6) & SUSE (SLES 11):

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

 

Ubuntu:

Code Block
mvn -B clean install package jdeb:jdeb -DnewVersion=1.7.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/

[For CentOS 5 or 6]

Code Block
yum install ambari-server*.rpm    #This should also pull in postgres packages as well.

[For SLES 11]

Code Block
zypper install ambari-server*.rpm    #This should also pull in postgres packages as well.

[For Ubuntu 12]

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 setup

Follow the on-screen instructions to proceed.

Once set up is done, start Ambari Server:

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.

Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:

[For CentOS 5 or 6]

Code Block
yum install ambari-agent*.rpm

[For SLES 11]

Code Block
zypper install ambari-agent*.rpm

[For Ubuntu 12]

Code Block
apt-get install ambari-agent*.rpm

Edit /etc/ambari-agent/ambari.ini

Code Block
...
[server]
hostname=localhost

...

Make sure hostname under the [server] section points to the actual Ambari Server host, rather than "localhost".

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.

Log in with username admin and password admin and follow on-screen instructions. Secure your environment by ensuring your administrator details are changed from the default values as soon as possible.

Under Install Options page, enter the hosts to add to the cluster.  Do not supply any SSH key, and check "Perform manual registration on hosts and do not use SSH" and hit "Next".