Installing Ambari Server
Setup YUM repository server
A YUM repository server setup is required in order to install Ambari. The repository must reside on a host which is accessible from all the cluster hosts. Use a dedicated host for this purpose or setup the YUM repository server on the admin host where the Ambari Server will be installed. To setup a new YUM repository server, a web server is needed. Make sure the web server is running on the host that will serve as a YUM repo.
Create Staging Directory
Use a staging directory where you will extract the tarballs for Ambari and Hadoop stacks. Each tarball is an archived yum repository and has setup_repo.sh script that creates a symlink from the document root of web server /var/www/html to the directory where the tarball is extracted.
The staging directory (and all the directories above it) must be readable and executable by the system user running the web process (typically apache). It is recommended to make the directory readable and executable by everyone. Please do not use /tmp directory as staging.
Download and Extract Ambari Tarball
Ambari RPMs are shipped as an archived YUM repository that should be extracted to the YUM repo server.
On the host used as a YUM repo, download the tarball into a staging directory that has been setup previously. Ensure that all the parent directories up to the staging directory have read and execute access for all users as we will be using this directory to stage the local yum repository.
Setup local YUM repository
On the host used as a YUM repo, execute a helper script setup_repo.sh shipped as a part of the ambari tarball:
This script assumes that the document root of YUM repo web server is set to /var/www/html and will create a symlink like ambari-<version> there that points to the extracted ambari tarball. Verify that the ambari YUM repo is now available from the YUM web server:
The script also creates Ambari repo definition and places it in /etc/yum.repos.d/ambari.repo file. This file should be available on the admin host where the Ambari Server will be installed.
At this point the Invariant Ambari YUM repository should be available for the cluster hosts. Test that you can access the following URL from the admin and cluster
Install Ambari Server
The Ambari Server is installed from RPMs by yum command:
This command installs the Ambari Server which is a web application server listening on port 8080. It also installs a PostgreSQL server instance, that listens on port 5432.
Last updated