Apache Ambari Administration
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.6.1.5 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/2.6.1.5/centos7/ambari.repo -O /etc/yum.repos.d/ambari-261.repo

  7. 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

  8. yum repolist

  9. mkdir -p /var/www/html/ambari/centos7
  10. cd /var/www/html/ambari/centos7
  11. reposync -r ambari-2.6.1.5
  12. mkdir -p /var/www/html/hdp/centos7
  13. cd /var/www/html/hdp/centos7
  14. reposync -r HDP-2.6.5.0
  15. reposync -r HDP-UTILS-1.1.0.22
  16. createrepo /var/www/html/ambari/centos7/ambari-2.6.1.5/
  17. createrepo /var/www/html/hdp/centos7/HDP-2.6.5.0
  18. 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/