Peter Tillotson yahoo.co.uk> writes:
>
> Full stack traces:
>
> java.lang.NoClassDefFoundError:
> Could not initialize class com.sun.jna.Native
>
>
> at com.sun.jna.Pointer.(Pointer.java:42)
> at
org.apache.cassandra.cache.SerializingCache.serialize(SerializingCache.java:92)
:/usr/share/java/jna.jar:/etc/cassandra:/usr/share/java/commons-daemon.jar:/usr/share/cassandra/lib/jamm-0.2.5.jar
java.class.version=50.0
From: paul cannon
To: user@cassandra.apache.org
Sent: Friday, 4 November 2011, 19:05
Subject: Re: Debian package jna bug
The cassandra-cli tool will show you, if you're using at least cassandra
1.0.1, in a "describe" command. If not, you can make a thrift
describe_keyspace() call some other way, and check the value of the
appropriate CfDef's row_cache_provider string. If it's
SerializingCacheProvider, it's off-heap
Cassandra 1.0.1 and only seemed to happen with
* JAVA_HOME=/usr/lib/jvm/java-6-sun
and jna.jar copied into /usr/share/cassandra(/lib)
I then saw the detail in the init script and how it was being linked
Is there a way I can verify which provider is being used? I want to make
sure Off heap is bein
I can't reproduce this. What version of the cassandra deb are you using,
exactly, and why are you symlinking or copying jna.jar into
/usr/share/cassandra? The initscript should be adding
/usr/sahre/java/jna.jar to the classpath, and that should be all you need.
The failure you see with o.a.c.cach
see below
* JAVA_HOME=/usr/lib/jvm/java-6-openjdk
works
--
Reading the documentation over at Datastax
“The Debian and RPM packages of Cassandra install JNA automatically”
http://www.datastax.com/dev/blog/whats-new-in-cassandra-1-0-improved-memory-and-disk-space-management
And indeed the Debia