5.8. Preparing The Ambari Repository Configuration File

  1. Download the ambari.repo file from the mirror server you created in the preceding sections or from the public repository.

    • From your mirror server:

      http://<web.server>/ambari/<OS>/2.x/updates/2.0.0/ambari.repo

    • From the public repository:

      http://public-repo-1.hortonworks.com/ambari/<OS>/2.x/updates/2.0.0/ambari.repo

    where <web.server> = FQDN of the web server host, and <OS> is CENTOS6, SLES11, or UBUNTU12.

  2. Edit the ambari.repo file using the Ambari repository Base URL obtained when setting up your local repository. Refer to step 3 in Setting Up a Local Repository with No Internet Access, or step 5 in Setting Up a Local Repository with Temporary Internet Access, if necessary.

    Base URL for a Local Repository

    Repository

    URL

    Ambari Base URL

    http://<web.server>/ambari/<OS>/2.x/updates/2.0.0

    where <web.server> = FQDN of the web server host, and <OS> is CENTOS6, SLES11, or UBUNTU12.

  3. If this an Ambari updates release, disable the GA repository definition.

    [ambari-2.x]

    name=Ambari 2.x

    baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.0

    gpgcheck=1

    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

    enabled=0

    priority=1

  4. Place the ambari.repo file on the machine you plan to use for the Ambari Server.

    • For RHEL/CentOS/Oracle Linux:

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

    • For SLES:

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

    • For Ubuntu:

      /etc/apt/sources.list.d/ambari.list

    • Edit the /etc/yum/pluginconf.d/priorities.conf file to add the following:

      [main]

      enabled=1

      gpgcheck=0

  5. Proceed to Installing Ambari Server to install and setup Ambari Server.


loading table of contents...