Setting Up a Local Repository with No Internet Access
Prerequisites
Complete the Getting Started Setting up a Local Repository procedure.
- -
To finish setting up your repository, complete the following:
Steps
Obtain the tarball for the repository you would like to create.
Copy the repository tarballs to the web server directory and untar.
Browse to the web server directory you created.
cd /var/www/html/
Untar the repository tarballs to the following locations: where <web.server>, <web.server.directory>, <OS>, <version>, and <latest.version> represent the name, home directory, operating system type, version, and most recent release version, respectively.
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
Confirm you can browse to the newly created local repositories.
URLs for a Local Repository - No Internet Access
Repository
Base URL
Ambari Base URL
http://<web.server>/Ambari-2.7.5.0/centos7
HDP Base URL
http://<web.server>/hdp/HDP/centos7/3.x/updates/<latest.version>
HDP-UTILS Base URL
http://<web.server>/hdp/HDP-UTILS-<version>/repos/centos7
where <web.server> = FQDN of the web server host.
Important Be sure to record these Base URLs. You will need them when installing Ambari and the cluster.
Optional: If you have multiple repositories configured in your environment, deploy the following plug-in on all the nodes in your cluster.
Install the plug-in.
yum install yum-plugin-priorities
Edit the
/etc/yum/pluginconf.d/priorities.conf
file to add the following:[main]
enabled=1
gpgcheck=0
More Information