Steps

  1. Download the ambari.repo file from the public repository:

    1. https://username:password@archive.cloudera.com/p/ambari/<OS>/2.x/updates/2.7.4.0/ambari.repo

    <OS> – centos7, sles12, ubuntu16, ubuntu 18, or debian9

  2. Edit the ambari.repo file and replace the Ambari Base URL baseurl obtained when setting up your local repository.

    1. #VERSION_NUMBER=2.7.4.0
    2. [ambari-2.7.4.0]
    3. name=ambari Version - ambari-2.7.4.0
    4. baseurl=https://username:password@archive.cloudera.com/p/ambari/2.x/2.7.4.0/centos7
    5. gpgcheck=1
    6. gpgkey=https://archive.cloudera.com/p/ambari/2.x/2.7.4.0/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    7. enabled=1
    8. priority=1

    You can disable the GPG check by setting gpgcheck =0. Alternatively, you can keep the check enabled but replace gpgkey with the URL to GPG-KEY in your local repository.

    Base URL for a Local Repository

    Built with Repository Tarball (No Internet Access)

    1. http://<web.server>/Ambari-2.7.4.0/<OS>

    Built with Repository File (Temporary Internet Access)

    1. http://<web.server>/ambari/<OS>/Updates-Ambari-2.7.4.0

    where <web.server> = FQDN of the web server host, and <OS> is amazonlinux2, centos7, sles12, ubuntu16, ubuntu18, or debian9.

  3. Place the ambari.repo file on the host you plan to use for the Ambari server:

    For RHEL/CentOS/Oracle/Amazon Linux:

    1. /etc/yum.repos.d/ambari.repo

    For SLES:

    1. /etc/zypp/repos.d/ambari.repo

    For Debain/Ubuntu:

    1. /etc/apt/sources.list.d/ambari.list
  4. Edit the /etc/yum/pluginconf.d/priorities.conf file to add the following values:

    1. [main]
    2. enabled=1
    3. gpgcheck=0

Next Steps

Proceed to Installing Ambari to install and setup Ambari Server.

More Information