The source can be checked out anonymously from SVN with the following command:
$ svn checkout http://svn.apache.org/repos/asf/incubator/ambari/branches/branch-0.9 ambari
You need to build Ambari RPMs from the source code that you checked out:
$ yum install rpm-build $ cd ambari/hmc/package/rpm $ ./create_hmc_rpm.sh $ cd ambari/mon_dashboard/package/rpm $ ./create_dashboard_rpm.sh
When this succeeds, you will find following RPMs inside the ambari directory:
1) ambari/hmc/package/rpm/build/rpmbuild/RPMS/noarch/ambari-0.9.0-1[.el6].noarch.rpm
2) ambari/hmc/package/rpm/build/rpmbuild/RPMS/noarch/ambari-agent-0.9.0-1[.el6].noarch.rpm
3) ambari/mon_dashboard/package/rpm/build/rpmbuild/RPMS/noarch/hdp_mon_dashboard-0.0.2.14-1.noarch.rpm
We will refer to the node running the Ambari server as Ambari master and the nodes to which Hadoop services will be installed as cluster nodes.
1) Set up password-less SSH for root on all your cluster nodes.
2) Install ambari-agent on each of the cluster nodes.
On RHEL/CentOS 5:
$ sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos5/hdp-release-1.0.1.14-1.el5.noarch.rpm $ sudo yum install epel-release $ sudo yum install ambari-agent-0.9.0-1.noarch.rpm --nogpgcheck
On RHEL/CentOS 6:
$ sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos6/hdp-release-1.0.1.14-1.el6.noarch.rpm $ sudo yum install epel-release $ sudo yum install ambari-agent-0.9.0-1.el6.noarch.rpm
3) Stop iptables on Ambari master:
$ sudo service iptables stop
4) Install Ambari server on Ambari master:
On RHEL/CentOS 5:
$ sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos5/hdp-release-1.0.1.14-1.el5.noarch.rpm $ sudo yum install epel-release $ sudo yum install php-pecl-json $ sudo yum install ambari-0.9.0-1.noarch.rpm --nogpgcheck $ sudo yum install hdp_mon_dashboard-0.0.2.14-1.noarch.rpm --nogpgcheck
On RHEL/CentOS 6:
$ sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos6/hdp-release-1.0.1.14-1.el6.noarch.rpm $ sudo yum install epel-release $ sudo yum install ambari-0.9.0-1.el6.noarch.rpm $ sudo yum install hdp_mon_dashboard-0.0.2.14-1.noarch.rpm
1) jdk-6u26-linux-x64.bin
2) jdk-6u26-linux-i586.bin
$ sudo service ambari start
Now that Ambari server is installed and started, you can start installing Apache Hadoop and its ecosystem components on your cluster nodes by visiting:
http://AMBARIMASTER/hmc/html/
from your browser.
If you have made any changes to Nagios or Ganglia addons code (mon_dashboard/src/addOns/[ganglia|nagios]), you will also have to install hdp_mon_ganglia_addons-0.0.2.14-1.noarch.rpm and hdp_mon_nagios_addons-0.0.2.14-1.noarch.rpm on the hosts running Ganglia and Nagios server, respectively, to make your changes effective. After your Hadoop cluster is installed using Ambari, go to the host(s) running Nagios and Ganglia server, remove these pre-installed addon RPMs for Nagios and Ganglia, and install the new ones built from the source. To build these RPMs from the source, run:
$ cd mon_dashboard/package/rpm $ ./create_ganglia_addon_rpm.sh $ ./create_nagios_addon_rpm.sh
Running the above creates the following two RPMs: