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.

[Note]Note

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 . From a terminal window, type:

    • For RHEL and CentOS 5

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

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

      wget -nv //public-repo-1.hortonworks.com/HDP/suse11/1.x/updates/1.3.7.0/hdp.repo -O /etc/zypp/repos.d/hdp.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-1.3.3.0, HDP-UTILS-1.1.0.16, and AMBARI-1.4.1.61:

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-1.4.1.61                         Ambari 1.4.1.61                                                        enabled:      6
HDP-1.3.3.0                               Hortonworks Data Platform Version - HDP-1.3.3.0                         enabled:     53
HDP-UTILS-1.1.0.16                      Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.16          enabled:     51

loading table of contents...