You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2011/02/16 23:19:24 UTC
[jira] Created: (SOLR-2369) Zookeeper depends on log4j, thus also
SolrCloud does
Zookeeper depends on log4j, thus also SolrCloud does
----------------------------------------------------
Key: SOLR-2369
URL: https://issues.apache.org/jira/browse/SOLR-2369
Project: Solr
Issue Type: Bug
Components: SolrCloud
Affects Versions: 3.1
Reporter: Jan Høydahl
Reproduce:
1. Use default Solr example build (with JDK logging)
2. Run example C on http://wiki.apache.org/solr/SolrCloud
3. You get Exception:
java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:51)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:114)
at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:111)
Probable reason:
Zookeeper depends on log4j
Quickfix:
Switch to log4j logging (as you cannot include both log4j bridge and log4j):
* Remove log4j-over-slf4j-1.5.5.jar and slf4j-jdk14-1.5.5.jar
* Add slf4j-logj12.jar and log4j-1.2.16.jar
Document the shortcoming in release notes
Long term fix:
Vote for the resolution of ZOOKEEPER-850 which switches ZK to slf4j logging
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] Commented: (SOLR-2369) Zookeeper depends on log4j, thus also
SolrCloud does
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996114#comment-12996114 ]
Yonik Seeley commented on SOLR-2369:
------------------------------------
The latest version of slf4j didn't seem to help the issue (but it prob makes sense to carry though and update to the latest version anyway)
The quickest resolution might be to patch zookeeper (esp since that is the way zookeeper is moving anyway). A move to using log4j as the implementation for slf4j could be kept as a separate decision.
> Zookeeper depends on log4j, thus also SolrCloud does
> ----------------------------------------------------
>
> Key: SOLR-2369
> URL: https://issues.apache.org/jira/browse/SOLR-2369
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 3.1
> Reporter: Jan Høydahl
> Labels: log4j, slf4j, zookeeper
>
> Reproduce:
> 1. Use default Solr example build (with JDK logging)
> 2. Run example C on http://wiki.apache.org/solr/SolrCloud
> 3. You get Exception:
> java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
> at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:51)
> at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:114)
> at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:111)
> Probable reason:
> Zookeeper depends on log4j
> Quickfix:
> Switch to log4j logging (as you cannot include both log4j bridge and log4j):
> * Remove log4j-over-slf4j-1.5.5.jar and slf4j-jdk14-1.5.5.jar
> * Add slf4j-logj12.jar and log4j-1.2.16.jar
> Document the shortcoming in release notes
> Long term fix:
> Vote for the resolution of ZOOKEEPER-850 which switches ZK to slf4j logging
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Assigned] (SOLR-2369) Zookeeper depends on log4j, thus also
SolrCloud does
Posted by "Mark Miller (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller reassigned SOLR-2369:
---------------------------------
Assignee: Yonik Seeley
> Zookeeper depends on log4j, thus also SolrCloud does
> ----------------------------------------------------
>
> Key: SOLR-2369
> URL: https://issues.apache.org/jira/browse/SOLR-2369
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 3.1
> Reporter: Jan Høydahl
> Assignee: Yonik Seeley
> Labels: log4j, slf4j, zookeeper
>
> Reproduce:
> 1. Use default Solr example build (with JDK logging)
> 2. Run example C on http://wiki.apache.org/solr/SolrCloud
> 3. You get Exception:
> java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
> at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:51)
> at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:114)
> at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:111)
> Probable reason:
> Zookeeper depends on log4j
> Quickfix:
> Switch to log4j logging (as you cannot include both log4j bridge and log4j):
> * Remove log4j-over-slf4j-1.5.5.jar and slf4j-jdk14-1.5.5.jar
> * Add slf4j-logj12.jar and log4j-1.2.16.jar
> Document the shortcoming in release notes
> Long term fix:
> Vote for the resolution of ZOOKEEPER-850 which switches ZK to slf4j logging
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] Resolved: (SOLR-2369) Zookeeper depends on log4j, thus also
SolrCloud does
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-2369.
--------------------------------
Resolution: Fixed
I've committed a patch that turns off zk's log4k mbean registration. "Example C" now works for me.
> Zookeeper depends on log4j, thus also SolrCloud does
> ----------------------------------------------------
>
> Key: SOLR-2369
> URL: https://issues.apache.org/jira/browse/SOLR-2369
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 3.1
> Reporter: Jan Høydahl
> Labels: log4j, slf4j, zookeeper
>
> Reproduce:
> 1. Use default Solr example build (with JDK logging)
> 2. Run example C on http://wiki.apache.org/solr/SolrCloud
> 3. You get Exception:
> java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
> at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:51)
> at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:114)
> at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:111)
> Probable reason:
> Zookeeper depends on log4j
> Quickfix:
> Switch to log4j logging (as you cannot include both log4j bridge and log4j):
> * Remove log4j-over-slf4j-1.5.5.jar and slf4j-jdk14-1.5.5.jar
> * Add slf4j-logj12.jar and log4j-1.2.16.jar
> Document the shortcoming in release notes
> Long term fix:
> Vote for the resolution of ZOOKEEPER-850 which switches ZK to slf4j logging
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org