2.4. Configure the Remote Repository

The standard HDP install fetches the software from a remote yum repository over the Internet. To use this option, you must set up access to the remote repository and have an available Internet connection for each of your hosts.


If your cluster does not have access to the Internet, or you are creating a large cluster and you want to conserve bandwidth, you can instead provide a local copy of the HDP repository that your hosts can access. For more information, see  Deployment Strategies for Data Centers with Firewalls, a separate document in this set.

  1. For each node in your cluster, download the repo configuration file hdp.repo and ambari.repo. From a terminal window, type:

    • For RHEL and CentOS 5

      wget -nv //public-repo-1.hortonworks.com/HDP/centos5/1.x/updates/  -O /etc/yum.repos.d/hdp.repo
       wget -nv //public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/ -O /etc/yum.repos.d/ambari.repo
    • For RHEL and CentOS 6

      wget -nv //public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/ -O /etc/yum.repos.d/hdp.repo
       wget -nv //public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/ -O /etc/yum.repos.d/ambari.repo
    • For SLES

      wget -nv //public-repo-1.hortonworks.com/HDP/suse11/1.x/updates/ -O /etc/zypp/repos.d/hdp.repo
       wget -nv //public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/ -O /etc/zypp/repos.d/ambari.repo
  2. Confirm the HDP repository is configured by checking the repo list.

    • For RHEL/CentOS

      yum repolist
    • For SLES

      zypper repos 

You should see something like this. Ensure you have HDP-, HDP-UTILS-, and AMBARI-

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.cat.pdx.edu
* extras: linux.mirrors.es.net
* updates: mirrors.usc.edu
repo id                                 repo name                                                             status
AMBARI-                         Ambari                                                        enabled:      6
HDP-                               Hortonworks Data Platform Version - HDP-                         enabled:     53
HDP-UTILS-                      Hortonworks Data Platform Utils Version - HDP-UTILS-          enabled:     51

loading table of contents...