Build and install Ambari 1.5.0
Step 1: Download and build Ambari 1.5.0 source:
wget http://www.apache.org/dist/ambari/ambari-1.5.0/ambari-1.5.0.tar.gz tar xfvz ambari-1.5.0.tar.gz cd ambari-1.5.0 mvn versions:set -DnewVersion=1.5.0 mvn -B clean install package rpm:rpm -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 https://cwiki.apache.org/confluence/display/AMBARI/Coding+Guidelines+for+Ambari
Step 2: Install Ambari Server:
Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/
[For CentOS 5 or 6]
yum install ambari-server*.rpm #This should also pull in postgres packages as well.
[For SLES 11]
zypper install ambari-server*.rpm #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.
ambari-server setup
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
ambari-server start
Step 4: BootStrap the Agents using the UI and begin the deploy/start process.
Go to the web server UI at:
$AMBARI_SERVER:8080/
Login using: Username *admin* and password *admin*
The step below are only required if the ambari agent is being bootstrapped manually.
Step 5: Install the ambari agent
The following command needs to be on all ambari agent hosts.
#] Get the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/
[For CentOS 5 or 6]
yum install ambari-agent*.rpm
[For SLES 11]
zypper install ambari-agent*.rpm
Step 6: Configure the ambari-agent
vim /etc/ambari-agent/ambari.ini
[server]
hostname=localhost
Make sure the above hostname points to the actual ambari server.
Step 7: Start the ambari-agent
#] ambari-agent start
Note: You would need to download the HDP repo to the hosts before proceeding with the installation
Repository URLs: