https://bugzilla.redhat.com/show_bug.cgi?id=1181487
Bug ID: 1181487 Summary: zookeeper service fails to start Product: Fedora Version: 21 Component: zookeeper Assignee: tstclair@redhat.com Reporter: jablonskis@gmail.com QA Contact: extras-qa@fedoraproject.org CC: ethan@ethantuttle.com, java-sig-commits@lists.fedoraproject.org, jeff@ocjtech.us, s@shk.io, tstclair@redhat.com
Description of problem: zookeeper service fails to start.
Version-Release number of selected component (if applicable): 3.4.6-2.fc21
How reproducible: Always
Steps to Reproduce: 1. yum install zookeeper 2. cp /etc/zookeeper/zoo_sample.cfg /etc/zookeeper/zoo.cfg 3. systemctl start zookeeper.service
Actual results: Service exits with a failure.
Expected results: Service keeps running
Additional info: cat /var/log/zookeeper/zookeeper.out SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/share/java/slf4j/slf4j-simple.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/share/java/slf4j/slf4j-nop.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory] [main] INFO org.apache.zookeeper.server.quorum.QuorumPeerConfig - Reading configuration from: /etc/zookeeper/zoo.cfg [main] INFO org.apache.zookeeper.server.DatadirCleanupManager - autopurge.snapRetainCount set to 3 [main] INFO org.apache.zookeeper.server.DatadirCleanupManager - autopurge.purgeInterval set to 0 [main] INFO org.apache.zookeeper.server.DatadirCleanupManager - Purge task is not scheduled. [main] WARN org.apache.zookeeper.server.quorum.QuorumPeerMain - Either no config or no quorum defined in config, running in standalone mode Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:50) at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:74) at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.jmx.HierarchyDynamicMBean at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 5 more
https://bugzilla.redhat.com/show_bug.cgi?id=1181487
Timothy St. Clair tstclair@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |low Status|NEW |ASSIGNED Hardware|Unspecified |All OS|Unspecified |Linux Severity|unspecified |low
--- Comment #1 from Timothy St. Clair tstclair@redhat.com --- Did you properly configure zookeeper? It requires setup prior to run.
https://bugzilla.redhat.com/show_bug.cgi?id=1181487
--- Comment #2 from Vaidas Jablonskis jablonskis@gmail.com --- I believe I did. I tried to use the same configuration file with a downloaded tarball release and it worked just fine.
The above error looks like some dependencies are missing, because either java CLASSPATH is not set properly or they are not installed.
https://bugzilla.redhat.com/show_bug.cgi?id=1181487
Fedora Java SIG java-sig-commits@lists.fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|java-sig-commits@lists.fedo | |raproject.org |
Christopher Tubbs ctubbsii-fedora@apache.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ctubbsii-fedora@apache.org
--- Comment #3 from Christopher Tubbs ctubbsii-fedora@apache.org --- (In reply to Vaidas Jablonskis from comment #2)
I believe I did. I tried to use the same configuration file with a downloaded tarball release and it worked just fine.
The above error looks like some dependencies are missing, because either java CLASSPATH is not set properly or they are not installed.
I wouldn't be surprised if it's the classpath. zkCli.sh also fails because of classpath issues. bz#1189956
java-sig-commits@lists.fedoraproject.org