3. Configure the Remote Repositories

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. Download the yum repo configuration files hdp.repo and ambari.repo. On your local mirror server, execute the following command:

    • For RHEL/CentOS 5:

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

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

      wget -nv http://public-repo-1.hortonworks.com/HDP/suse11/2.x/updates/2.0.6.1/hdp.repo -O /etc/zypp.repos.d/hdp.repo
      wget -nv http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.4.4.23/ambari.repo -O /etc/yum/repos.d/ambari.repo 
    • For Ubuntu:

      wget http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/hdp.list -O /etc/apt/sources.list.d/hdp.list 
  2. For Ubuntu hosts, add the gpg keys as the root user:

    gpg --keyserver pgp.mit.edu --recv-keys B9733A7A07513CAD
    gpg -a --export 07513CAD | apt-key add -
  3. Confirm the HDP repository is configured.

    • For RHEL/CentOS/Oracle Linux:

      yum repolist

      You should see something like this. Verify that you have HDP-2.0.6.1 directory:

      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-2.0.6.1 Hortonworks Data Platform Version - HDP-2.0.6.1 enabled: 53
    • For SLES:

      zypper repos
    • For Ubuntu:

      apt-get update

loading table of contents...