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

Switch to Threaded View
Hadoop, mail # user - ClassNotFoundException while running quick start guide on Windows.


Copy link to this message
-
Re: ClassNotFoundException while running quick start guide on Windows.
madhu phatak 2011-06-21, 10:24
I think the jar have some issuses where its not able to read the Main class
from manifest . try unjar the jar and see in Manifest.xml what is the main
class and then run as follows

 bin/hadoop jar hadoop-*-examples.jar <Full qualified main class> grep input
output 'dfs[a-z.]+'
On Thu, Jun 16, 2011 at 10:23 AM, Drew Gross <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm trying to run the example from the quick start guide on Windows and I
> get this error:
>
> $ bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Caused by: java.lang.ClassNotFoundException:
>        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:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: .  Program will exit.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Gross\Documents\Projects\discom\hadoop-0/21/0\logs
> Caused by: java.lang.ClassNotFoundException:
> Gross\Documents\Projects\discom\hadoop-0.21.0\logs
>        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:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class:
> Gross\Documents\Projects\discom\hadoop-0.21.0\logs.  Program will exit.
>
> Does anyone know what I need to change?
>
> Thank you.
>
> From, Drew
>
> --
> Forget the environment. Print this e-mail immediately. Then burn it.
>