Case study for setting up a local repository
Review this case study to understand how to prepare a local repository for Ambari 2.5.0.3 and HDP 2.6.0.3 on Centos7.
yum install yum-utils createrepo -y
yum install httpd -y
//firewall configuration
sudo systemctl start httpd
sudo systemctl status httpd
wget -nv
wget -nv
https://archive.cloudera.com/p/HDP/2.x/2.6.0.3/centos7/hdp.repo -O /etc/yum.repos.d/hdp.repo
yum repolist
mkdir -p /var/www/html/ambari/centos7
cd /var/www/html/ambari/centos7
reposync -r ambari-2.5.0.3
mkdir -p /var/www/html/hdp/centos7
cd /var/www/html/hdp/centos7
reposync -r HDP-2.6.0.3
reposync -r HDP-UTILS-1.1.0.21
createrepo /var/www/html/ambari/centos7/ambari-2.5.0.3/
createrepo /var/www/html/hdp/centos7/HDP-2.6.0.3
createrepo /var/www/html/hdp/centos7/HDP-UTILS-1.1.0.21/
The repositories will be available at:
http://<web.server>/ambari/centos7/ambari-2.5.0.3/
http://<web.server>/hdp/centos7/HDP-2.6.0.3/