mirror of https://github.com/apache/lucene.git
SOLR-3091: When running in SolrCloud mode, whether a instance is supposed to be part of the quorum or not, it tries to start a local Solr ZK server.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1240239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce3f9caf86
commit
047b368b59
|
@ -147,6 +147,7 @@ public class CoreContainer
|
|||
// TODO: remove after updating to an slf4j based zookeeper
|
||||
System.setProperty("zookeeper.jmx.log4j.disable", "true");
|
||||
|
||||
if (zkRun != null) {
|
||||
zkServer = new SolrZkServer(zkRun, zookeeperHost, solrHome, hostPort);
|
||||
zkServer.parseConfig();
|
||||
zkServer.start();
|
||||
|
@ -155,6 +156,7 @@ public class CoreContainer
|
|||
if (zookeeperHost == null) {
|
||||
zookeeperHost = zkServer.getClientString();
|
||||
}
|
||||
}
|
||||
|
||||
int zkClientConnectTimeout = 15000;
|
||||
|
||||
|
|
Loading…
Reference in New Issue