Apache Ambari Installation
Also available as:
PDF

RHEL/CentOS/Oracle Linux 7

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 https://archive.cloudera.com/p/ambari/2.x/2.5.0.3/centos7/ambari.repo -O /etc/yum.repos.d/ambari.repo
    [Important]Important

    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.

    repo id                    repo name                                       status
    ambari-2.5.0.0-1094        ambari Version - ambari-2.5.0.0-1094            12
    epel/x86_64                Extra Packages for Enterprise Linux 7 - x86_64  11,387
    ol7_UEKR4/x86_64           Latest Unbreakable Enterprise Kernel Release 4
                                for Oracle Linux 7Server (x86_64)   295
    ol7_latest/x86_64          Oracle Linux 7Server Latest (x86_64)            18,642
    puppetlabs-deps/x86_64     Puppet Labs Dependencies El 7 - x86_64          17
    puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64              225
     repolist: 30,578

    Version values vary, depending on the installation.

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

    yum install ambari-server
  5. Enter y when prompted to confirm transaction and dependency checks.

    A successful installation displays output similar to the following:

    Installing : postgresql-libs-9.2.18-1.el7.x86_64         1/4
    Installing : postgresql-9.2.18-1.el7.x86_64              2/4
    Installing : postgresql-server-9.2.18-1.el7.x86_64       3/4
    Installing : ambari-server-2.5.0.3-1050.x86_64           4/4
    Verifying  : ambari-server-2.5.0.3-1050.x86_64           1/4
    Verifying  : postgresql-9.2.18-1.el7.x86_64              2/4
    Verifying  : postgresql-server-9.2.18-1.el7.x86_64       3/4
    Verifying  : postgresql-libs-9.2.18-1.el7.x86_64         4/4
    
    Installed:
      ambari-server.x86_64 0:2.5.0.3-1050
    
    Dependency Installed:
     postgresql.x86_64 0:9.2.18-1.el7         
     postgresql-libs.x86_64 0:9.2.18-1.el7        
     postgresql-server.x86_64 0:9.2.18-1.el7
    Complete!
    [Note]Note

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

    Importing GPG key 0x07513CAD: Userid: "Jenkins (HDP Builds) <jenkin@hortonworks.com>" From : https://archive.cloudera.com/p/ambari/2.x/2.5.0.3/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

[Note]Note

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

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.

Next Step

Set Up the Ambari Server

More Information

Using a Local Repository