sunithabeeram commented on a change in pull request #4139: Migration to log4j2
URL: https://github.com/apache/incubator-pinot/pull/4139#discussion_r281797765
 
 

 ##########
 File path: 
pinot-common/src/main/java/org/apache/pinot/common/utils/ZkStarter.java
 ##########
 @@ -52,6 +52,10 @@ private ZookeeperInstance(PublicZooKeeperServerMain 
serverMain, String dataDirPa
     @Override
     public void initializeAndRun(String[] args)
         throws QuorumPeerConfig.ConfigException, IOException {
+      // org.apache.log4j.jmx.* is not compatible under log4j-1.2-api, which 
provides the backward compatibility for
+      // log4j 1.* api for log4j2. In order to avoid 'class not found error', 
the following line disables log4j jmx
+      // bean registration for local zookeeper instance
+      System.setProperty("zookeeper.jmx.log4j.disable", "true");
 
 Review comment:
   Do later versions of ZK work better with log4j2? Wondering what our plan 
should be to stop relying on log4j-1.2-api.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to