Reputation: 39
I have installed Solr 8.5.4 in Ubuntu. How to run it in Cloud mode? I have found that in order to run in Cloud mode, I should use the following command:
bin/solar start
but there is no folder called bin!! I also tried the following command but not work:
service solr start
Upvotes: 2
Views: 782
Reputation: 2310
Actually to run Solr in Cloud mode as a service on linux, the correct way is to uncomment and complete these two entries in solr.in.sh
# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
# e.g. host1:2181,host2:2181/chroot
# Leave empty if not using SolrCloud
ZK_HOST="rsi-ews5-dev"
# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed to cluster state
SOLR_HOST="rsi-ews5-dev"
See doc https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html "When the ZK_HOST variable is set, Solr will launch in "cloud" mode."
Upvotes: 0
Reputation: 166
To run solr in cloud mode it's very simple just use -c flag.
➜ solr-9.2.1 bin/solr start -c -f
here, -c -> cloud -f -> to start solr in forground
Upvotes: 0