Chapter 13. Configuring HDP Stack Repositories for Red Hat Satellite

As part of installing HDP Stack with Ambari, HDP.repo and HDP-UTILS.repo files are generated and distributed to the cluster hosts based on the Base URL user input from the Cluster Install Wizard during the Select Stack step. In cases where you are using Red Hat Satellite to manage your Linux infrastructure, you can disable the repositories defined in the HDP Stack .repo files and instead leverage Red Hat Satellite.

To disable the repositories defined in the HDP Stack .repo files:

  1. 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/
  2. 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
  3. Modify the .repo template file

    vi repo_suse_rhel.j2
  4. Set the enabled property to 0 to disable the repository.

    enabled=0
  5. Save and exit.

  6. 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]Important

You must configure Red Hat Satellite to define and enable the Stack repositories. Please refer to your Red Hat Satellite documentation for more information.


loading table of contents...