[
https://issues.apache.org/jira/browse/ACCUMULO-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070673#comment-17070673
]
Christopher Tubbs commented on ACCUMULO-180:
--------------------------------------------
[~thachln], this is an old issue. We now use GitHub for our issue tracker, at:
[https://github.com/apache/accumulo/issues]
The issue you saw occurs when using ZooKeeper 3.5 or later. The fix you applied
(adding ZooKeeper's lib directory to your class path) is a valid solution. This
has been addressed already for future releases at
[https://github.com/apache/accumulo/pull/1530]
> Missing zookeeper jar dependency in lib/
> ----------------------------------------
>
> Key: ACCUMULO-180
> URL: https://issues.apache.org/jira/browse/ACCUMULO-180
> Project: Accumulo
> Issue Type: Bug
> Affects Versions: 1.3.5-incubating, 1.4.0
> Reporter: Minh Duc Nguyen
> Priority: Minor
>
> When running bin/accumulo init, an exception is thrown. A fix is adding the
> zookeeper.jar (version 3.0+?) in lib/. Here is the stack trace:
> Thread "init" died null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.accumulo.start.Main$1.run(Main.java:89)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/zookeeper/KeeperException
> at
> org.apache.accumulo.server.util.Initialize.getInstanceNamePath(Initialize.java:330)
> at
> org.apache.accumulo.server.util.Initialize.doInit(Initialize.java:122)
> at org.apache.accumulo.server.util.Initialize.main(Initialize.java:402)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.zookeeper.KeeperException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 9 more
> Exception in thread "init" java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at org.apache.accumulo.start.Main$1.run(Main.java:93)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.accumulo.start.Main$1.run(Main.java:89)
> ... 1 more
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/zookeeper/KeeperException
> at
> org.apache.accumulo.server.util.Initialize.getInstanceNamePath(Initialize.java:330)
> at
> org.apache.accumulo.server.util.Initialize.doInit(Initialize.java:122)
> at org.apache.accumulo.server.util.Initialize.main(Initialize.java:402)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.zookeeper.KeeperException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 9 more
--
This message was sent by Atlassian Jira
(v8.3.4#803005)