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 and ambari.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
       wget -nv //public-repo-1.hortonworks.com/ambari/centos5/1.x/GA/ambari.repo -O /etc/yum.repos.d/ambari.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
       wget -nv //public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo -O /etc/yum.repos.d/ambari.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
       wget http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GAA/ambari.repo -O /etc/yum.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-1.2.0, HDP-UTILS-1.1.0.15, and ambari-1.x:

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
Updates-ambari-1.x                        ambari-1.x - Updates                                                  enabled:      5
ambari-1.x                                Ambari 1.x                                                            enabled:      5
HDP-1.2.0                                 Hortonworks Data Platform Version - HDP-1.2.0                         enabled:     53
HDP-UTILS-1.1.0.15                        Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.15          enabled:     51

loading table of contents...