5.2.2. Setting Up a Local Repository with No Internet Access

After completing the Getting Started Setting up a Local Repository procedure, finish setting up your repository by completing the following steps:

  1. Obtain the tarball for the repository you would like to create. For options, see Obtaining the Repositories.

  2. Copy the repository tarballs to the web server directory and untar.

    1. Browse to the web server directory you created.

      • For RHEL/CentOS/Oracle Linux:

        cd /var/www/html/
      • For SLES:

        cd /srv/www/htdocs/rpms
    2. Untar the repository tarballs to the following locations:

      Table 1.9. Untar Locations for a Local Repository - No Internet Access
      Repository Content Repository Location

      Ambari Repository

      Untar under {web-server-directory}

      HDP Stack Repositories

      Create directory and untar under{web-server-directory}/hdp

  3. Confirm you can browse to the newly created local repositories.

    Table 1.10. URLs for a Local Repository - No Internet Access
    Repository URL

    Ambari Base URL

    http://{web-server}/ambari/{$os}/1.x/updates/1.6.1

    HDP Base URL

    http://{web-server}/hdp/HDP/{$os}/2.x/updates/{$latest}

    HDP-UTILS Base URL

    http://{web-server}/hdp/HDP-UTILS-{$version}/repos/{$os}

    [Important]Important

    Be sure to record these Base URLs. You will need them when installing Ambari and the Cluster.

  4. Optional: If you have multiple repositories configured in your environment, deploy the following plug-in on all the nodes in your cluster.

    1. Install the plug-in.

      • For RHEL and CentOS 5

        yum install yum-priorities
      • For RHEL and CentOS 6

        yum install yum-plugin-priorities
    2. Edit the /etc/yum/pluginconf.d/priorities.conf file to add the following:

      [main]
      enabled=1
      gpgcheck=0

loading table of contents...