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 arusarka <sa...@gmail.com> on 2012/01/11 20:58:47 UTC
Getting error
--
View this message in context: http://old.nabble.com/Getting-error-tp33123705p33123705.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.
Re: Getting error during namenode -format
Posted by Eli Finkelshteyn <ie...@gmail.com>.
export JAVA_HOME="/cygdrive/c/Program\ Files/Java/jdk1.5.0_15" should work.
On 1/11/12 3:24 PM, arusarka wrote:
> Hi:
>
> I am in the process of installing hadoop on non-clustered single node
> windows xp. SSH installed and running.
>
> Java version: java version "1.5.0_15" it is installed in c:\Program
> Files\Java\jdk1.5.0_15
>
> hadoop-env.sh
>
> export JAVA_HOME=/cygdrive/c/Program\ Files/Java/jdk1.5.0_15
>
> When I am executing the command
>
> bin/hadoop namenode -format
>
> I am getting the following error, how to escape "Program Files"?
>
> Error:
> ==============
> $ bin/hadoop namenode -format
> cygpath: can't convert empty path
> /usr/local/hadoop-0.22.0/bin/hadoop-config.sh: line 194:
> /cygdrive/c/Program: No such file or directory
> 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
> C:\cygwin\usr\local\hadoop-0.22.0\/bin/hadoop-config.sh: line 194:
> /cygdrive/c/Program: No such file or directory
> 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:620)
> 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:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> Exception in thread "main"
>
>
> NOTE: My previous message was not complete at all, I apologize.
>
> Regards,
> Arup
>
>
Re: Getting error
Posted by Harsh J <ha...@cloudera.com>.
Arusarka,
Take my advice and do not take the error even if you're getting it :)
J/k.
Seriously though, looks like you sent your email accidentally incomplete. What error are you facing with which component in Hadoop, and how would you like us to help?
On 12-Jan-2012, at 1:28 AM, arusarka wrote:
>
>
> --
> View this message in context: http://old.nabble.com/Getting-error-tp33123705p33123705.html
> Sent from the Hadoop core-user mailing list archive at Nabble.com.
>