hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manish Maheshwari <mylogi...@gmail.com>
Subject Error in Formatting NameNode
Date Sat, 11 Feb 2012 10:51:31 GMT
Hi All,

I made 4-5 attempts in configuring the namenode but always get a Java Error

I am using hadoop-0.22.0 on cygwin. SSH is working

I have installed JDK 5 in JAVA_HOME=/cygdrive/c/Java/jdk1.5.0_22 and same
is set in hadoop-env.sh as well as the cygwin .bash_profile.
When i log in into Cygwin i see the JAVA_HOME set.

Below is the error -

-bash-4.1$ pwd
/cygdrive/c/hadoop/hadoop-0.22.0
-bash-4.1$ bin/hadoop namenode -format
*cygpath: can't convert empty path
**java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
**Exception in thread "main" cygpath: can't convert empty path
cygpath: can't convert empty path
*DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

cygpath: can't convert empty path
java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
Exception in thread "main" cygpath: can't convert empty path
cygpath: can't convert empty path
java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        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:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Exception in thread "main" -bash-4.1$
-bash-4.1$

-bash-4.1$ grep JAVA hadoop-env.sh
# The only required environment variable is JAVA_HOME.  All others are
# set JAVA_HOME in this file, so that it is correctly defined on
# export JAVA_HOME=/usr/lib/j2sdk1.6-sun
*export JAVA_HOME=/cygdrive/c/Java/jdk1.5.0_22
*
Any help is much appreciated.

Thanks,
Manish

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