To disable the repositories defined in the HDP Stack.repo files:
Before starting the Ambari Server and installing a cluster, on the Ambari Server browse to the Stacks definition directory.
cd /var/lib/ambari-server/resources/stacks/
Browse the install hook directory:
For HDP 2.0 or HDP 2.1 Stack
cd HDP/2.0.6/hooks/before-INSTALL/templates
For HDP 1.3 Stack
cd HDP/1.3.2/hooks/before-INSTALL/templates
Modify the.repo template file
vi repo_suse_rhel.j2
Set the enabled property to 0 to disable the repository.
enabled=0
Save and exit.
Start the Ambari Server and proceed with your install.
The .repo files will still be generated and distributed during cluster install but the repositories defined in the .repo files will not be enabled.
Important | |
---|---|
You must configure Red Hat Satellite to define and enable the Stack repositories. Please refer to the Red Hat Satellite documentation for more information. |