Apache Solr Search Installation
Also available as:
PDF
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:

  1. Put the repository configuration files for HDP Search in place on the host.

  2. Confirm availability of the repositories.

    For RHEL/CentOS 7:

    yum repolist

  3. Synchronize the repository contents to your mirror server.

    1. Browse to the web server directory:

      For RHEL/CentOS 7:

      cd /var/www/html

    2. Create a directory for HDP Search, and then change to the new directory:

      mkdir -p hdp-solr/<OS>
      cd hdp-solr/<OS>

      <OS> is centos7 or RHEL 7

    3. reposync the directory:

      reposync -r HDP-SOLR-<latest.version>
  4. Generate the repository metadata for HDP Search:

    createrepo <web.server.directory>/HDP-SOLR-<latest.version>/<OS>/

  5. 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 centos7 or RHEL7.

    Important: Be sure to record the Base URL. You will need it when installing HDP Search.

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