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 https://hdpweb.o.onslip.net/HDP/centos5/2.x/updates/2.0.10.0/hdp.repo -O /etc/yum.repos.d/hdp.repowget https://hdpweb.o.onslip.net/ambari/centos5/1.x/updates/1.5.0/ambari.repo -O /etc/yum.repos.d/ambari.repoRHEL/CentOS/Oracle Linux 6.x
wget https://hdpweb.o.onslip.net/HDP/centos6/2.x/updates/2.0.10.0/hdp.repo -O /etc/yum.repos.d/hdp.repowget https://hdpweb.o.onslip.net/ambari/centos6/1.x/updates/1.5.0/ambari.repo -O /etc/yum.repos.d/ambari.repoSLES 11
wget https://hdpweb.o.onslip.net/HDP/suse11/2.x/updates/2.0.10.0/hdp.repo -O /etc/zypp/hdp.repowget https://hdpweb.o.onslip.net/ambari/suse11/1.x/updates/1.5.0/ambari.repo -O /etc/zypp/ambari.repoCreate an HTTP server.
On the mirror server, install an HTTP server (such as Apache
httpd) using the instructions provided http://httpd.apache.org/download.cgiActivate this web server.
Ensure that the firewall settings (if any) allow inbound HTTP access from your cluster nodes to your mirror server.
![[Note]](../common/images/admon/note.png)
Note If you are using EC2, make sure that SELinux is disabled.
Optional - If your mirror server uses SLES, modify the
default-server.conffile 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

