mirror of https://github.com/apache/lucene.git
allow the zk server data dir to be overridden by sys prop
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1293460 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51ca380dd8
commit
3abf6717ab
|
@ -173,7 +173,8 @@ public class CoreContainer
|
|||
System.setProperty("zookeeper.jmx.log4j.disable", "true");
|
||||
|
||||
if (zkRun != null) {
|
||||
zkServer = new SolrZkServer(zkRun, zookeeperHost, solrHome, hostPort);
|
||||
String zkDataDir = System.getProperty("zkServerDataDir", solrHome);
|
||||
zkServer = new SolrZkServer(zkRun, zookeeperHost, zkDataDir, hostPort);
|
||||
zkServer.parseConfig();
|
||||
zkServer.start();
|
||||
|
||||
|
|
Loading…
Reference in New Issue