incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Shuler <mich...@pbandjelly.org>
Subject Re: Problem Starting Cassandra
Date Fri, 08 Oct 2010 21:34:35 GMT
On 10/08/2010 03:10 PM, Alberto Velandia wrote:
> Hi I'm having a problem starting cassandra after setting up a new server
> 
> INFO 20:08:47,315 JNA not found. Native methods will be disabled.
>  INFO 20:08:47,688 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
> ERROR 20:08:47,778 Exception encountered during startup.
> java.lang.NoClassDefFoundError: org.apache.cassandra.db.SystemTable
>    at java.lang.Class.initializeClass(libgcj.so.90)
>    at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:97)
>    at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:214)
> Caused by: java.lang.ClassNotFoundException: java.io.IOError not found in gnu.gcj.runtime.SystemClassLoader

This looks like you haven't set up the system to use the Sun JRE, yet.
Debian/Ubuntu uses CGJ by default.

$ update-alternatives --display java
java - auto mode
  link currently points to /usr/bin/gij-4.4
/usr/bin/gij-4.4 - priority 1044
/usr/lib/jvm/java-6-sun/jre/bin/java - priority 63
  slave java.1.gz: /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
Current 'best' version is '/usr/bin/gij-4.4'.

Install the sun-java6-jre package, if you haven't, and (one line):

$ sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

-- 
Kind regards,
Michael

Mime
View raw message