solrcloud - How to make SOLR "boot" into Cloud Mode when server reboots -
note: i've tried in comments below , else can think of. @ point have assume there's bug of kind , restart not bring solr in cloud mode unless roll own init.d stuff.
==================================================
i have 3 solr nodes , 3 zookeeper nodes.
the solr nodes solr 5.4 on ubuntu 14 , installed based on instructions here:
[https://cwiki.apache.org/confluence/display/solr/taking+solr+to+production]
if issue command start or restart solr on command line, looks fine in solr admin ui , nodes green in ui
sudo /opt/solr/bin/solr restart -c -z 192.168.56.5,192.168.56.6,192.168.56.7/solr5_4
however, though have zk_host entry in solr.in.sh cannot nodes show in solr admin console correctly if try:
service solr restart or if reboot vm.
my zk_host entry in solr.in.sh looks this:
zk_host="192.168.56.5,192.168.56.6,192.168.56.7/solr5_4" i tried way (no quotes, in case) because that's how looks on apache wiki page reading:
zk_host=192.168.56.5,192.168.56.6,192.168.56.7/solr5_4
i have run command line solr instances show correctly in admin ui. preferrable have "just happen" when rebooting vm.
if run service solr restart on of them, show "down" in admin ui , core using disappears admin ui 1 ip address i'm looking at.
why , settings required solr start on boot "cloud mode" correct zookeeper settings?
until recent change, docs setting solr prod had slight misdirection. bottom line here /etc/default/solr.in.sh controlled solr configs on startup. not 1 mentioned in docs (which somewhere else anyway /opt/solr/bin)
once added zkhost setting in /etc/default/solr.in.sh , restarted service (or rebooted server) solr came in "cloud" mode every time.
Comments
Post a Comment