You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Simon Chu <si...@gmail.com> on 2009/09/18 01:30:07 UTC
missing libraries when starting hadoop daemon
hadoop@zoe:/opt/hadoop-0.18.3> hadoop start-all.sh
Exception in thread "main" java.lang.NoClassDefFoundError: start-all/sh
Caused by: java.lang.ClassNotFoundException: start-all.sh
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: start-all.sh. Program will exit.
Can someone help me figure out how to include these libraries? by setting
LD_LIBRARY_PATH?
Simon
Re: missing libraries when starting hadoop daemon
Posted by Anthony Urso <an...@gmail.com>.
start-all.sh is shell script; it can't be run via Hadoop. Just run it
directly from your shell like this:
$ bin/start-all.sh
Cheers,
Anthony
On Thu, Sep 17, 2009 at 4:30 PM, Simon Chu <si...@gmail.com> wrote:
> hadoop@zoe:/opt/hadoop-0.18.3> hadoop start-all.sh
> Exception in thread "main" java.lang.NoClassDefFoundError: start-all/sh
> Caused by: java.lang.ClassNotFoundException: start-all.sh
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: start-all.sh. Program will exit.
>
>
> Can someone help me figure out how to include these libraries? by setting
> LD_LIBRARY_PATH?
>
> Simon
>