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/centos5/1.x/updates/1.2.1/hdp.repo  -O /etc/yum.repos.d/hdp.repo
       wget -nv //public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/1.2.2.4/ambari.repo -O /etc/yum.repos.d/ambari.repo
      
    • For RHEL and CentOS 6

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

      wget -nv //public-repo-1.hortonworks.com/HDP/centos5/1.x/updates/1.2.1/hdp.repo -O /etc/zypp/repos.d/hdp.repo
       wget http://public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/1.2.2.4/ambari.repo -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-1.2.1, HDP-UTILS-1.1.0.15, and AMBARI-1.2.2.5:

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.2.2.4                            Ambari 1.2.2.4                                                        enabled:      6
HDP-1.2.1                                 Hortonworks Data Platform Version - HDP-1.2.1                         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...