Case study for setting up a local repository
Review this case study to understand how to prepare a local repository for Ambari 2.6.1.5 and HDP 2.6.5 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.5.0/centos7/hdp.repo -O /etc/yum.repos.d/hdp-265.repo
yum repolist
mkdir -p /var/www/html/ambari/centos7
cd /var/www/html/ambari/centos7
reposync -r ambari-2.6.1.5
mkdir -p /var/www/html/hdp/centos7
cd /var/www/html/hdp/centos7
reposync -r HDP-2.6.5.0
reposync -r HDP-UTILS-1.1.0.22
createrepo /var/www/html/ambari/centos7/ambari-2.6.1.5/
createrepo /var/www/html/hdp/centos7/HDP-2.6.5.0
createrepo /var/www/html/hdp/centos7/HDP-UTILS-1.1.0.22/
The repositories will be available at:
http://<web.server>/ambari/centos7/ambari-2.6.1.5/
http://<web.server>/hdp/centos7/HDP-2.6.5.0/