Exception in Thread "Thread-1" Java.lang.noclassdeffounderror:org/apache/log4j/jmx/Hierarchydynamicmbean
At org.apache.zookeeper.jmx.Managedutil.Registerlog4jmbeans (managedutil.java:50)
At Org.apache.zookeeper.server.Quorum. Quorumpeermain.runfromconfig (quorumpeermain.java:122)
At Com.complexible.stardog.pack.CLI. Zkstart$1.run (Zkstart.java:119)
At Java.lang.Thread.run (Unknown Source)
caused By:java.lang.ClassNotFoundException:org.apache.log4j.jmx.Hierarchydynamicmbean
At Java.net.urlclassloader$1.run (Unknown Source)
At Java.net.urlclassloader$1.run (Unknown Source)
At java.security.accesscontroller.doprivileged (Native Method)
At Java.net.URLClassLoader.Findclass (Unknown Source)
At Java.lang.ClassLoader.loadclass (Unknown Source)
At sun.misc.launcher$Appclassloader.loadclass (Unknown Source)
At Java.lang.ClassLoader.loadclass (Unknown Source)
... 4 More
simply put, this question was tossing me an afternoon, and later found to be a jar package conflict
because I had previously added a log4j jar package to the $JAVA _home/jre/lib/ext/, the operation of ZK here was an error,
Well, then _home the log4j of the $JAVA/jre/lib/ext/ .
Zookeeper Start ClassNotFoundException