Hey Ashish, this isn't a compile time error, I assume that you files aren't touched with the correct user rights. For example this one:
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 > Have a look at michael nolls tutorial on setting up Hadoop, and then just install hama on top of it and own the directories with the same user as Hadoop. http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/ BTW installing things on the desktop isn't a good idea either ;D Put them into "/usr/local/". Watch out when starting your application: this should be done with the user it actually owns. Kind Regards, Thomas 2011/5/2 Ashish Agarwal <[email protected]> > 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 > -- Thomas Jungblut Berlin mobile: 0170-3081070 business: [email protected] private: [email protected]
