5.2.2. Install the Repos

  • Temporarily reconfigure your firewall to allow Internet access from your mirror server host.

  • Execute the following command to download the appropriate Hortonworks yum client configuration file and save it in /etc/yum.repos.d/ directory on the mirror server host.

    Table 1.4. Deploying HDP - Option II
    Cluster OS HDP Repository Tarballs

    RHEL/CentOS/Oracle Linux 5.x

    wget http://public-repo-1.hortonworks.com/HDP/centos5/2.x/updates/2.0.10.0/hdp.repo -O /etc/yum.repos.d/hdp.repo

    wget http://public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/1.5.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

    RHEL/CentOS/Oracle Linux 6.x

    wget http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.10.0/hdp.repo -O /etc/yum.repos.d/hdp.repo

    wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.5.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

    SLES 11

    wget http://public-repo-1.hortonworks.com/HDP/suse11/2.x/updates/2.0.10.0/hdp.repo -O /etc/zypp/hdp.repo

    wget http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.5.0/ambari.repo -O /etc/zypp/ambari.repo

  • Create an HTTP server.

    1. On the mirror server, install an HTTP server (such as Apache httpd) using the instructions provided http://httpd.apache.org/download.cgi

    2. Activate this web server.

    3. Ensure that the firewall settings (if any) allow inbound HTTP access from your cluster nodes to your mirror server.

      [Note]Note

      If you are using EC2, make sure that SELinux is disabled.

    4. Optional - If your mirror server uses SLES, modify the default-server.conf file to enable the docs root folder listing.

      sed -e "s/Options None/Options Indexes MultiViews/ig" /etc/apache2/default-server.conf > /tmp/tempfile.tmp
      mv /tmp/tempfile.tmp /etc/apache2/default-server.conf


loading table of contents...