hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Agarwal <ashish.a77...@gmail.com>
Subject Hama Compiling Error
Date Mon, 02 May 2011 09:00:55 GMT
Hello,

My name is Ashish and I recently started working on Hama after getting
accepted in the Google Summer of Code program.

I downloaded Hama, hadoop-0.20.2 on my Desktop. I am using Ubuntu and have
followed the instructions given at
http://wiki.apache.org/hama/GettingStarted.

I have set the following environment variables -
JAVA_HOME to be /usr/lib/jvm/java-6-sun/  and
CLASSPATH to be /usr/lib/jvm/java-6-sun-1.6.0.24

I navigated to the HAMA/hama-trunk/bin and am trying to start the hama
daemons by running the command *sh* *start-bspd.sh*
But I keep getting this error -

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hama/zookeeper/ZKServerTool
Caused by: java.lang.ClassNotFoundException:
org.apache.hama.zookeeper.ZKServerTool
    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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)Exception in
thread "main" java.lang.NoClassDefFoundError:
org/apache/hama/zookeeper/ZKServerTool
Caused by: java.lang.ClassNotFoundException:
org.apache.hama.zookeeper.ZKServerTool
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)Exception in
thread "main" java.lang.NoClassDefFoundError:
org/apache/hama/zookeeper/ZKServerToolException in thread "main"
java.lang.NoClassDefFoundError: org/apache/hama/zookeeper/ZKServerTool
Caused by: java.lang.ClassNotFoundException:
org.apache.hama.zookeeper.ZKServerTool
    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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon
Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon.sh:
Permission denied
Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon
cat: /home/ashish/Desktop/Hama/hama-trunk/bin/../conf/groomservers: No such
file or directory

Caused by: java.lang.ClassNotFoundException:
org.apache.hama.zookeeper.ZKServerTool
    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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon.sh:
Permission denied
cat: /home/ashish/Desktop/Hama/hama-trunk/bin/../conf/groomservers: No such
file or directory

    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon.sh:
Permission denied
cat: /home/ashish/Desktop/Hama/hama-trunk/bin/../conf/groomservers: No such
file or directory

Could not find the main class: org.apache.hama.zookeeper.ZKServerTool.
Program will exit.
start-bspd.sh: 29: /home/ashish/Desktop/Hama/hama-trunk/bin/hama-daemon.sh:
Permission denied
cat: /home/ashish/Desktop/Hama/hama-trunk/bin/../conf/groomservers: No such
file or directory


Can someone please help me in solving this problem ?

Thank you,
Ashish

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message