no snappyjava in java.library.path (JDK 1.7 issue?)

2012-05-15 Thread Stephen McKamey
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


Re: no snappyjava in java.library.path (JDK 1.7 issue?)

2012-05-15 Thread Stephen McKamey
Reverting to JDK 1.6 appears to fix the issue. Is JDK 1.7 not yet supported
by Cassandra?

java version 1.6.0_31
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)


On Tue, May 15, 2012 at 12:55 PM, Stephen McKamey step...@mckamey.comwrote:

 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)




Re: no snappyjava in java.library.path (JDK 1.7 issue?)

2012-05-15 Thread Roshni Rajagopal
Hi Stephen,

Cassandra's wiki says Cassandra requires the most stable version of Java 1.6 
you can deploy.

http://wiki.apache.org/cassandra/GettingStarted

Regards,

Roshni

From: Stephen McKamey step...@mckamey.commailto:step...@mckamey.com
Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org 
user@cassandra.apache.orgmailto:user@cassandra.apache.org
Date: Tue, 15 May 2012 13:40:43 -0700
To: Cassandra user@cassandra.apache.orgmailto:user@cassandra.apache.org
Subject: Re: no snappyjava in java.library.path (JDK 1.7 issue?)

Reverting to JDK 1.6 appears to fix the issue. Is JDK 1.7 not yet supported by 
Cassandra?

java version 1.6.0_31
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

On Tue, May 15, 2012 at 12:55 PM, Stephen McKamey 
step...@mckamey.commailto:step...@mckamey.com wrote:
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)

This email and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed. If you have 
received this email in error destroy it immediately. *** Walmart Confidential 
***