hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vikas tanwar <vikas.s.tan...@gmail.com>
Subject Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
Date Mon, 31 Oct 2011 06:31:35 GMT
>
> Hi,
> I am new to Hadoop.
> I have installed cygwin to install and try Hive in Hadoop.
> But whiledoin some standalone operations in Hadoop ,i am getting below
> error.
>
> Intellectus@Intellectus-PC /cygdrive/d/hadoop/hadoop-0.21.0/hadoop-0.21.0
> $ bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/util/PlatformName
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.util.PlatformName
>         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.hadoop.util.PlatformName.
> Program will exit.
> Exception in thread "main" java.io.IOException: Error opening job jar:
> hadoop-*-examples.jar
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:130)
> Caused by: java.io.FileNotFoundException: hadoop-*-examples.jar (The
> filename, directory name, or volume label syntax is incorrect)
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>         at java.util.jar.JarFile.<init>(JarFile.java:135)
>         at java.util.jar.JarFile.<init>(JarFile.java:72)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:128)
>
>
>  Kindly help!
> ..
> Warm Regards
> Vikas Tanwar
>
>

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