On 7/6/2015 2:59 AM, Adrian Liew wrote:
> When I run the command below on a Windows machine using Powershell window:
> 
> .\solr.cmd -e cloud -z localhost:2181,localhost:2182,localhost:2183
> 
> I get the following error:
> 
> Invalid command-line option: localhost:2182
> 
> Somehow it does not recognize comma separated between the localhost. As far 
> as I know if you are trying to run SolrCloud against your ZooKeeper Ensemble, 
> you will need to specifify all three ZK server addresses (according to . 
> https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble)
>  However, some blogs say you can just connect to only just one instance for a 
> ZK Ensemble (http://solr.pl/en/2013/03/11/solrcloud-howto-2/). So I am not 
> sure which one is correct now.
> 
> Thoughts on the above?

I haven't done this on Windows, or with the bin/solr script, but it
works fine on Linux with -DzkHost.  You could try putting quotes around
the three hosts and see if that helps.

Note that the setup you have indicated is only good for a proof of
concept.  For a true production-ready install, all three zookeeper nodes
must be on different physical machines, and should not use localhost.

Solr will only use the zookeeper host(s) that you indicate.  If you only
specify one host, and that host goes down, Solr will not be able to
communicate with zookeeper, and it will stop functioning.

Thanks,
Shawn

Reply via email to