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.5.1/ambari.repo
    • From the public repository:

      http://public-repo-1.hortonworks.com/ambari/{$os}/1.x/updates/1.5.1/ambari.repo
  2. Edit the ambari.repo file using the Ambari repository Base URL and the HDP-UTILS 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.13. Base URLs for a Local Repository
    Repository URL

    Ambari Base URL

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

    HDP-UTILS Base URL

    http://{web-server}/hdp/HDP-UTILS-{$version}/repos/{$os}

    If this an Ambari updates release, disable the GA repository definition. Also disable the HDP-UTILS repository definition for the version not being used for your stack. In the example below, GA is disabled and HDP_UTILS 1.1.0.16 is disabled. We have replaced the Base URLs for Ambari and HDP_UTILS 1.1.0.17.

    [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
    
    [HDP-UTILS-1.1.0.16]
    name=Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.16
    baseurl=http://public- repo-1.hortonworks.com/HDP-UTILS-1.1.0.16/repos/centos6
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos5/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=0
    priority=1
    
    [Updates-ambari-1.5.1]
    name=ambari-1.5.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
    
    [HDP-UTILS-1.1.0.17]
    name=Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.17
    baseurl=this.is.the.HDP-UTILS.base.url
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/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...