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