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

Steps

  1. Before installing Ambari, you must update username and password in the ambari.repo file. Run the following command: vi /etc/yum.repos.d/ambari.repo

    For example, the output displays the following:

    1. #VERSION_NUMBER=2.7.5.0-72
    2. [ambari-2.7.5.0]
    3. #json.url = http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    4. name=ambari Version - ambari-2.7.5.0
    5. baseurl=https://username:password@archive.cloudera.com/p/ambari/centos7/2.x/updates/2.7.5.0
    6. gpgcheck=1
    7. gpgkey=https://username:password@archive.cloudera.com/p/ambari/centos7/2.x/updates/2.7.5.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    8. enabled=1
    9. priority=1
  2. Next, install the Ambari bits. This also installs the default PostgreSQL Ambari database.

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

    A successful installation displays output similar to the following:

    1. Installing : postgresql-libs-9.2.18-1.el7.x86_64 1/4
    2. Installing : postgresql-9.2.18-1.el7.x86_64 2/4
    3. Installing : postgresql-server-9.2.18-1.el7.x86_64 3/4
    4. Installing : ambari-server-2.7.5.0-124.x86_64 4/4
    5. Verifying : ambari-server-2.7.5.0-124.x86_64 1/4
    6. Verifying : postgresql-9.2.18-1.el7.x86_64 2/4
    7. Verifying : postgresql-server-9.2.18-1.el7.x86_64 3/4
    8. Verifying : postgresql-libs-9.2.18-1.el7.x86_64 4/4
    9. Installed:
    10. ambari-server.x86_64 0:2.7.5.0-72
    11. Dependency Installed:
    12. postgresql.x86_64 0:9.2.18-1.el7
    13. postgresql-libs.x86_64 0:9.2.18-1.el7
    14. postgresql-server.x86_64 0:9.2.18-1.el7
    15. Complete!

    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:

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

    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

More Information