Apache Ambari Administration
Also available as:
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 and HDP 2.6.5 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. wget -nv

    https://archive.cloudera.com/p/ambari/2.x/ -O /etc/yum.repos.d/ambari-261.repo

  7. wget -nv

    https://archive.cloudera.com/p/HDP/2.x/ -O /etc/yum.repos.d/hdp-265.repo

  8. yum repolist

  9. mkdir -p /var/www/html/ambari/centos7
  10. cd /var/www/html/ambari/centos7
  11. reposync -r ambari-
  12. mkdir -p /var/www/html/hdp/centos7
  13. cd /var/www/html/hdp/centos7
  14. reposync -r HDP-
  15. reposync -r HDP-UTILS-
  16. createrepo /var/www/html/ambari/centos7/ambari-
  17. createrepo /var/www/html/hdp/centos7/HDP-
  18. createrepo /var/www/html/hdp/centos7/HDP-UTILS-

The repositories will be available at:

  • http://<web.server>/ambari/centos7/ambari-

  • http://<web.server>/hdp/centos7/HDP-