cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McKamey <step...@mckamey.com>
Subject "no snappyjava in java.library.path" (JDK 1.7 issue?)
Date Tue, 15 May 2012 19:55:28 GMT
I'm getting a org.xerial.snappy.SnappyError when creating my first column
family after blowing away my Cassandra installation and trying to run the
latest release. I'm undoubtably making some silly mistake but cannot seem
to find it. I even commented out my "sstable_compression=SnappyCompressor"
settings.

InvalidRequestException(why:SnappyCompressor.create() threw an error:
org.xerial.snappy.SnappyError [FAILED_TO_LOAD_NATIVE_LIBRARY] null)
at
org.apache.cassandra.thrift.Cassandra$system_add_column_family_result.read(Cassandra.java:27683)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at
org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_column_family(Cassandra.java:1193)
at
org.apache.cassandra.thrift.Cassandra$Client.system_add_column_family(Cassandra.java:1180)
at
org.scale7.cassandra.pelops.ColumnFamilyManager$2.execute(ColumnFamilyManager.java:64)
at
org.scale7.cassandra.pelops.ColumnFamilyManager$2.execute(ColumnFamilyManager.java:61)
at
org.scale7.cassandra.pelops.ManagerOperand.tryOperation(ManagerOperand.java:131)
at
org.scale7.cassandra.pelops.ColumnFamilyManager.addColumnFamily(ColumnFamilyManager.java:67)
....

Worth noting is I'm on Mac OS X 10.7.4 and I recently upgraded to the
latest JDK (really hoping this isn't the issue):

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)


When Cassandra starts up with blown away lib/log dirs, I can see the Snappy
in the classpath, but it says "Native methods will be disabled" despite
having JNA. I've got the latest JNA installed at /usr/share/java/jna.jar
and symbolic linked at /opt/apache-cassandra-1.1.0/lib/jna.jar.

 INFO 12:18:59,430 Logging initialized
 INFO 12:18:59,434 JVM vendor/version: Java HotSpot(TM) 64-Bit Server
VM/1.7.0_04
 ....
 INFO 12:18:59,435 Classpath:
bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../lib/antlr-3.2.jar:bin/../lib/apache-cassandra-1.1.0.jar:bin/../lib/apache-cassandra-clientutil-1.1.0.jar:bin/../lib/apache-cassandra-thrift-1.1.0.jar:bin/../lib/avro-1.4.0-fixes.jar:bin/../lib/avro-1.4.0-sources-fixes.jar:bin/../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/commons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:bin/../lib/guava-r08.jar:bin/../lib/high-scale-lib-1.1.2.jar:bin/../lib/jackson-core-asl-1.9.2.jar:bin/../lib/jackson-mapper-asl-1.9.2.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:bin/../lib/jna.jar:bin/../lib/json-simple-1.1.jar:bin/../lib/libthrift-0.7.0.jar:bin/../lib/log4j-1.2.16.jar:bin/../lib/metrics-core-2.0.3.jar:bin/../lib/platform.jar:bin/../lib/servlet-api-2.5-20081211.jar:bin/../lib/slf4j-api-1.6.1.jar:bin/../lib/slf4j-log4j12-1.6.1.jar:bin/../lib/snakeyaml-1.6.jar:bin/../lib/snappy-java-1.0.4.1.jar:bin/../lib/snaptree-0.1.jar:bin/../lib/jamm-0.2.5.jar
 INFO 12:18:59,710 Unable to link C library. Native methods will be
disabled.
 ....
 INFO 12:19:00,529 Cassandra version: 1.1.0

Mime
View raw message