https://bugzilla.redhat.com/show_bug.cgi?id=1509010
Bug ID: 1509010 Summary: $ZOOCFGDIR needs to be added to classpath for log4j.properties Product: Fedora Version: 26 Component: zookeeper Assignee: tstclair@heptio.com Reporter: shawn.bohrer@gmail.com QA Contact: extras-qa@fedoraproject.org CC: ctubbsii@fedoraproject.org, greg.hellings@gmail.com, java-sig-commits@lists.fedoraproject.org, mluscon@gmail.com, s@shk.io, tstclair@heptio.com
Description of problem:
When setting up zookeeper I found to problems with logging. The first was that I needed to install:
slf4j-log4j12-1.7.22-4.fc26.noarch
I see that the zookeeper package depends on log4j12 and slf4j but not slf4j-log4j12. Next, once I had that installed I received the following warnings:
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.server.quorum.QuorumPeerConfig). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
This occurs because /etc/zookeeper needs to be added to the classpath, in order to find /etc/zookeeper/log4j.properties. Interestingly in /usr/libexec/zkEnv.sh there are the following lines:
ZOOCFGDIR="/etc/zookeeper" ... #add the zoocfg dir to classpath CLASSPATH="/usr/share/java/zookeeper/zookeeper.jar" CLASSPATH="$CLASSPATH:/usr/share/java/zookeeper/zookeeper-ZooInspector.jar" CLASSPATH="$CLASSPATH:/usr/share/java/zookeeper/zookeeper-tests.jar" ...
Despite that comment, it does not add $ZOOCFGDIR to the classpath which makes me think that perhaps it was removed or maybe they wrote the comment and never did it. There also does not appear to be any environment variables or similar ways to add additional items to the classpath so you must edit /usr/libexec/zkEnv.sh
Version-Release number of selected component (if applicable):
zookeeper-java-3.4.9-3.fc26.x86_64 zookeeper-3.4.9-3.fc26.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1509010
--- Comment #1 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1509010
Fedora End Of Life jkurik@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL Last Closed| |2018-05-29 07:43:22
--- Comment #2 from Fedora End Of Life jkurik@fedoraproject.org --- Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
java-sig-commits@lists.fedoraproject.org