SOLR-2369: turn off zookeeper log4j mbean registration due to slf4j incompat

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1071831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-02-17 23:09:43 +00:00
parent 2493780acb
commit 742f95598f
1 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,11 @@ public class CoreContainer
if (zkRun == null && zookeeperHost == null)
return; // not in zk mode
// zookeeper in quorum mode currently causes a failure when trying to
// register log4j mbeans. See SOLR-2369
// TODO: remove after updating to an slf4j based zookeeper
System.setProperty("zookeeper.jmx.log4j.disable", "true");
zkServer = new SolrZkServer(zkRun, zookeeperHost, solrHome, hostPort);
zkServer.parseConfig();
zkServer.start();