Case study for setting up an HDP-GPL local repository
If the cluster is using the GPL components, you must replace the HDP-GPL repository URL with a local repository.
-
Set up a local HDP-GPL repository
- wget -nv https://archive.cloudera.com/p/HDP-GPL/3.x/3.1.4.0/centos7/hdp.gpl.repo -O /etc/yum.repos.d/hdp.gpl.repo
- mkdir -p /var/www/html/hdp-gpl/centos7
- cd /var/www/html/hdp-gpl/centos7/
- reposync -r HDP-GPL-3.1.4.0
- createrepo /var/www/html/hdp-gpl/centos7/HDP-GPL-3.1.4.0/
-
Edit /etc/ambari-server/conf/ambari.properties
- Replace gpl.license.accepted=false with gpl.license.accepted=true
- Restart Ambari server
- You must edit the HDP-GPL repository similar to the HDP repository. However, the URL and Local repository contents, and the UI fields are different for both the repositories. For more information on updating the version repository, see Update version repository base urls.
- If you do not plan use the GPL components, disable the gpl.license.accepted property
- Restart Ambari server