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:
Mark Robert Miller 2012-02-24 22:38:56 +00:00
parent 51ca380dd8
commit 3abf6717ab
1 changed files with 2 additions and 1 deletions

View File

@ -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();