Hadoop Security Guide
Also available as:
loading table of contents...

Configuring Solr Standalone

Use the following procedure to configure Solr Standalone.

  1. Download the solr_for_audit_setup_v3 file to the /usr/local/ directory:

    wget https://issues.apache.org/jira/secure/attachment/12761323/solr_for_audit_setup_v3.tgz -O /usr/local/solr_for_audit_setup_v3.tgz
  2. Use the following commands to switch to the /usr/local/ directory and extract the solr_for_audit_setup_v3 file.

    cd /usr/local
    tar xvf solr_for_audit_setup_v3.tgz

    The contents of the .tgz file will be extracted into a /usr/local/solr_for_audit_setup directory.

  3. Use the following command to switch to the /usr/local/solr_for_audit_setup directory.

    cd /usr/local/solr_for_audit_setup
  4. Use the following command to open the install.properties file in the vi text editor.

    vi install.properties

    Set the following property values, then save the changes to the install.properties file.

    Table 5.1. Solr install.properties Values

    Property NameValueDescription
    JAVA_HOME<path_to_jdk>, for example: /usr/jdk64/jdk1.8.0_60Provide the path to the JDK install folder. For Hadoop, you can check /etc/hadoop/conf/hadoop-env.sh for the value of JAVA_HOME. As noted previously, Solr only supports JDK 1.7 and higher.
    SOLR_USERsolrThe Linux user used to run Solr.
    SOLR_INSTALL_FOLDER/opt/lucidworks-hdpsearch/solrThe Solr installation directory.
    SOLR_RANGER_HOME/opt/solr/ranger_audit_serverThe location where the Ranger-related configuration and schema files will be copied.
    SOLR_RANGER_PORT6083The Solr port for Ranger.
    SOLR_DEPLOYMENTstandaloneThe deployment type.
    SOLR_RANGER_DATA_FOLDER/opt/solr/ranger_audit_server/dataThe folder where the index data will be stored. The volume for this folder should have at least 1 TB free space for the index data, and should be backed up regularly.
    SOLR_LOG_FOLDER/var/log/solr/ranger_auditsThe folder for the Solr log files.
    SOLR_MAX_MEM2gThe memory allocation for Solr.

  5. Use the following command to run the Solr for Ranger setup script.

  6. To start Solr, log in as the solr or root user and run the following command.


    When Solr starts, a confirmation message appears.

    Started Solr server on port 6083 (pid=). Happy searching!
  7. You can use a web browser to open the Solr Admin Console at the following address:


You can use the following command to stop Solr: