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.5.1.0 and HDP 2.6.1.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. wget -nv

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

  7. wget -nv

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

  8. yum repolist

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

The repositories will be available at:

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

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