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

Switch to Plain View
Accumulo >> mail # user >> Re: Uncaught exception


+
John Vines 2013-03-02, 16:44
+
Billie Rinaldi 2013-03-02, 16:49
+
jiun bookworm 2013-03-02, 16:51
+
John Vines 2013-03-02, 16:54
+
jiun bookworm 2013-03-02, 18:54
+
John Vines 2013-03-02, 18:58
+
jiun bookworm 2013-03-02, 19:00
+
Billie Rinaldi 2013-03-02, 19:37
+
Terry P. 2013-03-02, 19:30
+
jiun bookworm 2013-03-02, 16:24
+
Billie Rinaldi 2013-03-02, 16:48
Copy link to this message
-
Re: Uncaught exception
Thanks,
that looks just right

On Sat, Mar 2, 2013 at 7:48 PM, Billie Rinaldi <[EMAIL PROTECTED]> wrote:

> On Sat, Mar 2, 2013 at 8:24 AM, jiun bookworm <[EMAIL PROTECTED]>wrote:
>
>> This may be a noob issue, but some help would be appreciated.
>> im trying out accumulo, and i have setup zookeeper and hadoop in a single
>> node setup
>> when i try to start accumulo this is what i see,
>>
>> accumulo-1.4.2]$ ./bin/accumulo init
>> Uncaught exception: org/apache/hadoop/io/WritableComparable
>> java.lang.NoClassDefFoundError: org/apache/hadoop/io/WritableComparable
>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
>>     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
>>     at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>     at org.apache.accumulo.core.Constants.<clinit>(Constants.java:91)
>>     at
>> org.apache.accumulo.server.util.Initialize.<clinit>(Initialize.java:99)
>>     at java.lang.Class.forName0(Native Method)
>>     at java.lang.Class.forName(Class.java:264)
>>     at
>> org.apache.accumulo.start.classloader.AccumuloClassLoader.loadClass(AccumuloClassLoader.java:363)
>>     at
>> org.apache.accumulo.start.classloader.AccumuloClassLoader.loadClass(AccumuloClassLoader.java:370)
>>     at org.apache.accumulo.start.Main.main(Main.java:48)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.hadoop.io.WritableComparable
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>     ... 17 more
>>
>> i have set the environement settings properly,
>>
>> test -z "$ACCUMULO_HOME"         && export
>> ACCUMULO_HOME=/home/me/eng/source/storage/accumulo-1.4.2
>> test -z "$JAVA_HOME"             && export
>> JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
>> test -z "$HADOOP_HOME"           && export
>> HADOOP_HOME=/home/me/eng/source/storage/hadoop
>> test -z "$ZOOKEEPER_HOME"        && export
>> ZOOKEEPER_HOME=/home/me/eng/source/storage/zookeeper-3.4.5
>> test -z "$ACCUMULO_LOG_DIR"      && export
>> ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
>>
>> what could be the issue, the hadoop im using is 2.0.3alpha.
>>
>
> Hadoop 2.0 doesn't put its jars in the HADOOP_HOME directory like Hadoop
> 1.0 does, and Accumulo can't find them.  You can solve this issue by adding
> the directories where Hadoop 2.0 keeps its jars to the general.classpaths
> property in the accumulo-site.xml file (example lines that worked for me
> with 2.0.2-alpha are below), or you can symlink the Hadoop jars Accumulo
> needs into the HADOOP_HOME directory.  I'm not sure what the minimal
> required set of jars is, though.
>
>         $HADOOP_HOME/share/hadoop/common/lib/[^.].*.jar,
>         $HADOOP_HOME/share/hadoop/hdfs/lib/[^.].*.jar,
>         $HADOOP_HOME/share/hadoop/mapreduce/lib/[^.].*.jar,
>         $HADOOP_HOME/share/hadoop/common/[^.].*.jar,
>         $HADOOP_HOME/share/hadoop/hdfs/[^.].*.jar,
>         $HADOOP_HOME/share/hadoop/mapreduce/[^.].*.jar,
>
> Billie
>