Install Externally-Managed SolrCloud
How to install externally-managed SolrCloud when using Apache Solr for Ranger audits.
setup.shscript 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.
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
install.propertiesfile (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
setup.shscript 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.
$SOLR_RANGER_HOME/install_notes.txtfor additional instructions.