hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Macdonald <cra...@dcs.gla.ac.uk>
Subject Re: Hadoop 0.19 over OS X : dfs error
Date Sat, 24 Jan 2009 22:45:17 GMT
Hi,

I guess that the java on your PATH is different from the setting of your 
$JAVA_HOME env variable.
Try $JAVA_HOME/bin/java -version?

Also, there is a program called Java Preferences on each system for 
changing the default java version used.

Craig

nitesh bhatia wrote:
> Hi
> I am trying to setup Hadoop 0.19 on OS X. Current Java Version is
>
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
>
> When I am trying to format dfs  using "bin/hadoop dfs -format" command. I am
> getting following errors:
>
> nMac:hadoop-0.19.0 Aryan$ bin/hadoop dfs -format
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version number in .class file
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>     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:316)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version number in .class file
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>     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:316)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>
>
> I am not sure why this error is coming. I am having latest Java version. Can
> anyone help me out with this?
>
> Thanks
> Nitesh
>
>   


Mime
View raw message