/
"./solr
"), you need to use ZooKeeper "chroot
".chroot
" is not mandatory but it's considered as a best practice.chroot
" znode in ZooKeeper.zkCli.sh
" to create your "chroot
" znode (ie: "/solr
"):solrhost1
", and "solrhost2
"zkhost1
", "zkhost2
", and "zkhost3
"solr-9.1.1.zip
" in the folder you want to install Solr: /opt/solr-9.1.1
${SOLR_HOME}
(or solr.solr.home
) represents the path of the Solr home directory: /opt/solr/server/solr
${SOLR_ROOT}
represents the path of the Solr installation folder: /opt/solr/
${SOLR_HOME}/solr.xml
"${SOLR_HOME}
must contain a solr.xml
file, otherwise Solr will fail to start.solrhost1
", "solrhost2
")-z "zkhost1:2181,zkhost2:2181,zkhost3:2181/solr"
from the above command if you have defined "ZK_HOST
" in "solr.in.sh
"./solr
" (the znode "/solr
" has to be created first in ZooKeeper):chroot
", make sure that the Solr znode is created first in ZooKeeper ("/solr
")._default
" configuration to ZooKeeper ("${SOLR_HOME}/configsets/_default
").-z
" parameter, go down, Solr will lose connection with ZooKeeper even if the ZooKeeper ensemble contains other instances that are up and running.-m 512m
(default)-z "zkhost1:2181,zkhost2:2181,zkhost3:2181/solr"
solrhost1
", "solrhost2
")/solr
" in ZooKeeper.solr-9.1.1.zip
" file to 2 locations of your choice:/opt/solr-i1
/opt/solr-i2
8983
)8984
)/solr
" in ZooKeeper.solr-9.1.1.zip
" file to a location of your choice:/opt/solr
solr1
, solr2
, ...solr1
, solr2
, ...),
you need to copy the "solr.xml
" file from "/opt/solr/server/solr
".solr1
, solr2
, ...),
you need to create a "logs
" directory./opt/solr/bin/solr
:solr.cmd
:
8983
)8984
)