6. 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 file hdp.repo. On your local mirror server, execute the following command:

    • For RHEL/CentOS 5:

      wget http://public-repo-1.hortonworks.com/HDP-2.0.0.2/repos/centos5/hdp.repo

    • For RHEL/CentOS 6:

      wget http://public-repo-1.hortonworks.com/HDP-2.0.0.2/repos/centos6/hdp.repo
  2. On all hosts, copy the hdp.repo file you just downloaded to your yum repo list.

    cp ./hdp.repo /etc/yum.repos.d/hdp.repo

  3. Confirm the HDP repository is configured by checking the repo list.

    yum repolist

    You should see something like this. Ensure that you have HDP-2.0.0.2 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.0.2 Hortonworks Data Platform Version - HDP-2.0.0.2 enabled: 53

loading table of contents...