Solr high availability (shard downtime does not affect query)

1. Download the configuration file that needs to be modified from Solr to the local

Execute the command: solrctl --solr http://13.1.17.67:8093/solr  --zk 13.1.17.67:2181,13.1.17.68:2181,13.1.17.69:2181,13.1.17.70:2181,13.1.17.71:2181 /solr instancedir --get SOA_HBASE_JYLS /bigdata/hsl/SOA_HBASE_JYLS

--The blue part is the address of the solr page

--The red part is the zookeeper address

--The purple part is the directory of the configuration information file

--The green part is the local download location

 

2. Modify the configuration file information

To make it highly available, modify the configuration file solrconfig.xml.

3. Upload and update the configuration file

Execute the command: solrctl --solr http://13.1.17.67:8093/solr  --zk 13.1.17.67:2181,13.1.17.68:2181,13.1.17.69:2181,13.1.17.70:2181,13.1.17.71:2181 /solr instancedir --update  SOA_HBASE_JYLS /bigdata/hsl/SOA_HBASE_JYLS

--The blue part is the address of the solr page

--The red part is the zookeeper address

--The purple part is the directory of the configuration information file

--The green part is the local file location

4. Restart the solr service

 

Guess you like

Origin blog.csdn.net/sileiH/article/details/89212459