Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # user >> object heap error


Copy link to this message
-
Re: object heap error
I'm not sure which version of zookeeper accumulo is built against, but I've used against the CDH3u3 version without issue.

Can you check the permissions on that jar? If those are fine, you can run jar -tf on it to see if the class is really missing.
-Joey

Sent from my iPhone

On Mar 11, 2012, at 12:25, Donald Resnik <[EMAIL PROTECTED]> wrote:

> Eric,
>
> Thanks for the idea, here is my only zookeeper entry in the accumulo classpath:
>
> file:/usr/lib/zookeeper/zookeeper-3.3.3-cdh3u0.jar
>
> So I am using the cloudera zookeeper, not the apache zookeeper.  Could that be the issue?
>
> Should I try to get the apache zookeeper jar for accumulo?
>
> Don
>
> On Sun, Mar 11, 2012 at 9:46 AM, Eric Newton <[EMAIL PROTECTED]> wrote:
> If you type this:
>
>  $ ./bin/accumulo classpath
>
> You should see a zookeeper jar in the list.  See if you can figure out why it is being missed.
>
> -Eric
>
>
> On Sun, Mar 11, 2012 at 10:44 AM, Donald Resnik <[EMAIL PROTECTED]> wrote:
> Joey,
>
> Thanks for the email.  I had HADOOP_HOME and ZOOKEEPER_HOME in my env, but I added them to acumulo-env.sh as well.  Now I am not getting the hadoop class error, but I am still getting the zookeeper error and a new tserver error.  zookeeper.jar is in /usr/lib/zookeeper
>
>
> ==> logger_localhost.err <=> Uncaught exception: org/apache/zookeeper/Watcher
> java.lang.NoClassDefFoundError: org/apache/zookeeper/Watcher
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:247)
>     at org.apache.accumulo.start.classloader.AccumuloClassLoader.loadClass(AccumuloClassLoader.java:348)
>     at org.apache.accumulo.start.classloader.AccumuloClassLoader.loadClass(AccumuloClassLoader.java:355)
>     at org.apache.accumulo.start.Main.main(Main.java:56)
> Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.Watcher
>     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:307)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>     ... 17 more
>
> ==> tserver_localhost.err <=> java.lang.NoClassDefFoundError: org/apache/zookeeper/Watcher
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>     at java.lang.Class.getDeclaredMethods0(Native Method)
>     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>     at java.lang.Class.getMethod0(Class.java:2670)