Ranger Ambari Installation
Also available as:
PDF

Installing Solr

The recommended method for installing Solr is using the HDP Search Installer. Optionally, you can install Solr using the Solr for Ranger setup script.

Installing Solr with the HDP Search Installer (Recommended)

To install Solr, use the following command to run the HDP Search installer:

yum install lucidworks-hdpsearch

The HDP Search installer installs Solr in the /opt/lucidworks-hdpsearch/solr directory.

Installing Solr with the Setup Script (Optional)

To install Solr using the Solr for Ranger setup script, set the following properties in the install.properties file before running the setup.sh script described in the next two sections, Configuring Solr Standalone and Configuring Solr Cloud.

[Note]Note

If you have installed Solr using the HDP Search installer, there is no need to set these properties.

Table 4.1. Solr install.properties Values

Property NameValueDescription
SOLR_INSTALLtrueIf this is set to true, the setup.sh script will download and install the Solr package specified with SOLR_DOWNLOAD_URL.
SOLR_DOWNLOAD_URLhttp://archive.apache.org/dist/lucene/solr/5.2.1/solr-5.2.1.tgzThe Solr download URL.
SOLR_INSTALL_FOLDER/opt/solrThe Solr installation directory.