Solr 5.0:无法使用 Zookeeper Ensemble 启动 Solr

Solr 5.0: Unable to start Solr with Zookeeper Ensemble

我在 server1:2181, server2:2181server3:2181.

有 3 个 Zookeeper 服务器 运行

我想在 server1:8983,server2:8983,server3:8983server4:8983 启动 4 个 Solr 服务器以指向上面的 Zookeeper Ensemble。所以在 server1,我 运行 一个命令:

bin>solr -c -z server1:2181,server2:2181,server3:2181 -m 2g

我收到一条错误消息:

Missing operand.
Invalid command-line option: server2:2181
Usage:.........

但是 如果我指向一台 Zookeeper 服务器,例如:

bin>solr -c -z server1:2181 -m 2g

启动成功

所有服务器运行宁在Windows。

我做错了什么?还是Windows中的Solr启动脚本有错误?

您需要将您的 zk 连接字符串放在引号中。