3. 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-1.2.0/repos/centos5/hdp.repo  -O /etc/yum.repos.d/hdp.repo
    • For RHEL and CentOS 6

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

      wget -nv //public-repo-1.hortonworks.com/HDP-1.2.0/repos/suse11/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. Just make sure you have both HDP-1.2.0 and HDP-UTILS-1.1.0.15:

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
HDP-1.2.0 Hortonworks Data Platform Version - HDP-1.2.0          64
HDP-UTILS-1.1.0.15 Hortonworks Data Platform Utils Version - HDP-UTILS-1.2.0

loading table of contents...