solr的两种安装方式

安装模式

  • Standalone
  • SolrCloud

安装

 

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值