Setting up a Local Repository With Temporary Internet Access
If you are setting up a local repository with temporary internet access, complete the following steps:
Put the repository configuration files for HDP Search in place on the host.
Confirm availability of the repositories.
For RHEL/CentOS/Oracle Linux:
yum repolist
For SLES:
zypper repos
For Debian/Ubuntu:
Dpkg-list
Synchronize the repository contents to your mirror server.
Browse to the web server directory:
For RHEL/CentOS/Oracle Linux:
cd /var/www/html
For SLES:
cd /srv/www/htdocs/rpms
For Debian/Ubuntu:
cd /var/www/html
Create a directory for HDP Search, and then change to the new directory:
mkdir -p hdp-solr/<OS> cd hdp-solr/<OS>
<OS>
is centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.reposync
the directory:reposync -r HDP-SOLR-<latest.version>
Generate the repository metadata for HDP Search:
createrepo <web.server.directory>/HDP-SOLR-<latest.version>/<OS>/
Using the following URL, confirm that you can browse to the newly created repository:
http://<web.server>/HDP-SOLR-<latest.version>/<OS>/
where
<web.server>
is the fully-qualified domain name of the web server host, and<OS>
is centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.Important: Be sure to record the Base URL. You will need it when installing HDP Search.
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.
For RHEL and CentOS 7:
yum install yum-plugin-priorities
For RHEL and CentOS 6:
yum install yum-plugin-priorities
Edit the
/etc/yum/pluginconf.d/priorities.conf
file to add the following:[main] enabled=1 gpgcheck=0