Case study for setting up a local repository
Review this case study to understand how to prepare a local repository for Ambari 2.6.2.2 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 -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.2.2
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.2.2/
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.2.2/
http://<web.server>/hdp/centos7/HDP-2.6.5.0/