Managing Auditing
Also available as:
PDF

Install Externally-Managed SolrCloud

How to install externally-managed SolrCloud when using Apache Solr for Ranger audits.

You can download the Solr package from Apache Solr Downloads (link below). Make sure that the Solr version is 5.2 or above. You can also use the Ranger setup.sh script to automatically download, install, and configure Solr. If you would like to use the setup.sh script to install Solr, set the following properties in the install.properties files, along with the settings from the one of the configuration options in the following sections.
  1. Run the following commands:
    cd $HOME
    git clone https://github.com/apache/incubator-ranger.git
    cd incubator-ranger/security-admin/contrib/solr_for_audit_setup
  2. Edit the install.properties file (see the instructions in the following sections).
    Table 1. Solr install.properties Values for setup.sh script
    Property Name Value Description
    SOLR_INSTALL true When set to true, hesetup.sh script will download the Solr package and install it.
    SOLR_DOWNLOAD_URL http://archive.apache.org/dist/lucene/solr/5.2.1/solr-5.2.1.tgz It is recommended that you use one for Apache mirror sites to download the Solr package. You can choose a mirror site at http://lucene.apache.org/solr/mirrors-solr-latest-redir.html
    SOLR_INSTALL_FOLDER /opt/solr The Solr install folder.
  3. Run the ./setup.sh script.
  4. Refer to $SOLR_RANGER_HOME/install_notes.txt for additional instructions.