Apache Ambari Installation
Also available as:

RHEL/CentOS/Oracle Linux 6

On a server host that has Internet access, use a command line editor to perform the following steps:

  1. Log in to your host as root.

  2. Download the Ambari repository file to a directory on your installation host.

    wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/ -O /etc/yum.repos.d/ambari.repo


    Do not modify the ambari.repo file name. This file is expected to be available on the Ambari Server host during Agent registration.

  3. Confirm that the repository is configured by checking the repo list.

    yum repolist

    You should see values similar to the following for Ambari repositories in the list.

    Version values vary, depending on the installation.

    repo id

    repo name



    Ambari 2.x



    CentOS-6 - Base



    CentOS-6 - Extras



    CentOS-6 - Updates


  4. Install the Ambari bits. This also installs the default PostgreSQL Ambari database.

    yum install ambari-server

  5. Enter y when prompted to to confirm transaction and dependency checks.

    A successful installation displays output similar to the following:

    Installing : postgresql-libs-8.4.20-3.el6_6.x86_64         1/4
    Installing : postgresql-8.4.20-3.el6_6.x86_64              2/4
    Installing : postgresql-server-8.4.20-3.el6_6.x86_64       3/4
    Installing : ambari-server-               4/4
    Verifying  : ambari-server-               1/4
    Verifying  : postgresql-8.4.20-3.el6_6.x86_64              2/4
    Verifying  : postgresql-server-8.4.20-3.el6_6.x86_64       3/4
    Verifying  : postgresql-libs-8.4.20-3.el6_6.x86_64         4/4
      ambari-server.x86_64 0:
    Dependency Installed:
     postgresql.x86_64 0:8.4.20-3.el6_6           
     postgresql-libs.x86_64 0:8.4.20-3.el6_6        
     postgresql-server.x86_64 0:8.4.20-3.el6_6



    Accept the warning about trusting the Hortonworks GPG Key. That key will be automatically downloaded and used to validate packages from Hortonworks. You will see the following message:

    Importing GPG key 0x07513CAD: Userid: "Jenkins (HDP Builds) <jenkin@hortonworks.com>" From : http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins


When deploying HDP on a cluster having limited or no Internet access, you should provide access to the bits using an alternative method.

For more information about setting up local repositories, see Using a Local Repository.

Ambari Server by default uses an embedded PostgreSQL database. When you install the Ambari Server, the PostgreSQL packages and dependencies must be available for install. These packages are typically available as part of your Operating System repositories. Please confirm you have the appropriate repositories available for the postgresql-server packages.