5.2.4.  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}/1.x/updates/1.6.1/ambari.repo
    • From the public repository:

      http://public-repo-1.hortonworks.com/ambari/{$os}/1.x/updates/1.6.1/ambari.repo
  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 having No Internet Access, or step 5 in Setting Up a Local Repository having Temporary Internet Access, if necessary.

    Table 1.12. Base URLs for a Local Repository
    Repository URL

    Ambari Base URL

    http://{web-server}/ambari/{$os}/1.x/updates/1.6.1

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

    [ambari-1.x]
    name=Ambari 1.x
    baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=0
    priority=1
    
    [Updates-ambari-1.6.1]
    name=ambari-1.6.1 - Updates
    baseurl=this.is.the.AMBARI.base.url
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

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

    1. RHEL/CentOS/Oracle Linux

      /etc/yum.repos.d

      SLES

      /etc/zypp/repos.d
    2. Edit the /etc/yum/pluginconf.d/priorities.conf file to add the following:

      [main]
      enabled=1
      gpgcheck=0

  4. Proceed to Running the Ambari Installer to install and setup Ambari Server.


loading table of contents...