Administering Ambari
Also available as:
PDF
loading table of contents...

Case study for setting up a local repository

Review this case study to understand - how to prepare a local repository for Ambari 2.7.0 and HDP 3.0.0 on Centos7:

  1. yum install yum-utils createrepo -y
  2. yum install httpd -y
  3. //firewall configuration
  4. sudo systemctl start httpd
  5. sudo systemctl status httpd
  6. mkdir -p /var/www/html/
  7. wget -nv https://archive.cloudera.com/p/ambari/2.x/2.7.0.0/centos7/ambari.repo -O /etc/yum.repos.d/ambari.repo
  8. wget -nv https://archive.cloudera.com/p/HDP/centos7/3.x/updates/3.0.0.0/hdp.repo -O /etc/yum.repos.d/hdp.repo
  9. yum repolist
  10. cd /var/www/html
  11. mkdir -p ambari/centos7
  12. cd ambari/centos7/
  13. reposync -r ambari-2.7.0.0
  14. cd ../..
  15. mkdir -p hdp/centos7
  16. cd hdp/centos7/
  17. reposync -r HDP-3.0.0.0
  18. reposync -r HDP-UTILS-1.1.0.22
  19. createrepo /var/www/html/ambari/centos7/ambari-2.7.0.0
  20. createrepo /var/www/html/hdp/centos7/HDP-3.0.0.0
  21. 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.0.0/
    • http://<web.server>/hdp/centos7/HDP-3.0.0.0/
    • http://<web.server>/hdp/centos7/HDP-UTILS-1.1.0.22/