安装模式
- Standalone
- SolrCloud
安装
- yuminstall lucidworks-hdpsearch
- wget https://issues.apache.org/jira/secure/attachment/12761323/solr_for_audit_setup_v3.tgz-O /usr/local/solr_for_audit_setup_v3.tgz
- cd/usr/local
- tar xvfsolr_for_audit_setup_v3.tgz
- cd/usr/local/solr_for_audit_setup
- viinstall.properties
Standalone
Property Name | Value | Description |
JAVA_HOME | <path_to_jdk>,for example: /usr/jdk64/jdk1.8.0_60 | Provide 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_USER | solr | The Linux user used to run Solr. |
SOLR_INSTALL_FOLDER | /opt/lucidworks-hdpsearch/solr | The Solr installation directory. |
SOLR_RANGER_HOME | /opt/solr/ranger_audit_server | The location where the Ranger-related configuration and schema files will be copied. |
SOLR_RANGER_PORT | 6083 | The Solr port for Ranger. |
SOLR_DEPLOYMENT | standalone | The deployment type |
SOLR_RANGER_DATA_FOLDER | /opt/solr/ranger_audit_server/data | The 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_audits | The folder for the Solr log files |
SOLR_MAX_MEM | 2g | The memory allocation for Solr |
SolrCloud
Property Name | Value | Description |
JAVA_HOME | <path_to_jdk>,for example: /usr/jdk64/jdk1.8.0_60 | Provide 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_USER | solr | The Linux user used to run Solr. |
SOLR_INSTALL_FOLDER | /opt/lucidworks-hdpsearch/solr | The Solr installation directory. |
SOLR_RANGER_HOME | /data2/solr/ranger_audit_server | The location where the Ranger-related configuration and schema files will be copied. |
SOLR_RANGER_PORT | 6083 | The Solr port for Ranger. |
SOLR_DEPLOYMENT | solrcloud | The deployment type |
SOLR_ZK | <ZooKeeper_host>:2181/ranger_audits | The Solr ZooKeeper host and port. It is recommended to provide a sub-folder to create the Ranger Audit related configurations so you can also use ZooKeeper for other Solr instances. Due to a Solr bug, if you are using a path (sub-folder), you can only specify one ZooKeeper host. |
SOLR_SHARDS | 1 | If you want to distribute your audit logs, you can use multiple shards. Make sure the number of shards is equal or less than the number of Solr nodes you will be running. |
SOLR_REPLICATION | 1 | It is highly recommend that you set up at least two nodes and replicate the indexes. This gives redundancy to index data, and also provides load balancing of Solr queries. |
SOLR_LOG_FOLDER | /data2/log/solr/ranger_audits | The folder for the Solr log files. |
SOLR_MAX_MEM | 2g | The memory allocation for Solr. |
- ./setup.sh
- /opt/solr/ranger_audit_server/scripts/add_ranger_audits_conf_to_zk.sh
- /opt/solr/ranger_audit_server/scripts/start_solr.sh
- http:<solr_host>:6083/solr
- /opt/solr/ranger_audit_server/scripts/stop_solr.sh