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/Oracle Linux:

      yum repolist

    • For SLES:

      zypper repos

    • For Debian/Ubuntu:

      Dpkg-list

  3. Synchronize the repository contents to your mirror server.

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

    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 centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.

    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 centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.

    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.

      • 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