hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: java.lang.UnsupportedClassVersionError with JDK 1.6.0_17
Date Fri, 11 Jun 2010 15:44:10 GMT
On Fri, Jun 11, 2010 at 2:42 AM, Sergio Bossa <sergio.bossa@gmail.com> wrote:
> As already described in a previous mail, hbase doesn't start when run
> through the start-hbase.sh script, complaining about the
> UnsupportedClassVersionError.
> But, when run through the hbase.sh script, it just works fine.
> So, I think there's a problem with the start-hbase.sh script.


It works for me.

pynchon-8:hbase stack$ ./bin/start-hbase.sh
starting master, logging to
/Users/stack/checkouts/hbase/bin/../logs/hbase-stack-master-pynchon-8.local.out
pynchon-8:hbase stack$ tail -f logs/hbase-stack-master-pynchon-8.local.log
...
2010-06-11 08:39:18,310 INFO
org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
scanning meta region {server: 192.168.1.157:60646, regionname:
.META.,,1.1028785192, startKey: <>}
2010-06-11 08:39:18,321 INFO
org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
scan of 0 row(s) of meta region {server: 192.168.1.157:60646,
regionname: .META.,,1.1028785192, startKey: <>} complete
2010-06-11 08:39:18,321 INFO
org.apache.hadoop.hbase.master.BaseScanner: All 1 .META. region(s)
scanned
^C
pynchon-8:hbase stack$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
pynchon-8:hbase stack$ which java
/usr/bin/java

I'm OSX 10.6.3 though.

Try setting JAVA_HOME in conf/hbase-env.sh to point at 1.6 java?
St.Ack


> Let me know if you need any other info.
>
>> HBase is compiled with, and requires Java 6.  I have personally run it
>> successfully on both 10.5 and 10.6.  In terms of Java development, it
>> is more or less required to be on OSX 10.6 since Java6 is no longer
>> supported on OSX 10.5.
>
> Why do you say so?
> I have OSX 10.5 and develop with Java6 on a daily basis: never had
> such a problems :)
>
> --
> Sergio Bossa
> http://www.linkedin.com/in/sergiob
>

Mime
View raw message