-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snappy-java fails on Mac OS JDK 1.7 #5
Comments
Hi Rob, Thanks for bringing this forward! Okay - it turns out this is a path bug with Snappy 1.0.4.1 affecting Java 7 on OSX: http://code.google.com/p/snappy-java/issues/detail?id=39 Snappy is generally well supported; this is an unusual issue because of a naming-convention change in JDK7. Since it's a simple bug to fix, and since Snappy is so widely used - I'm hoping they'll get around to fixing it soon. EDIT: I see they've already marked it for inclusion in 1.0.5. In the meantime, you should be able to manually extract the relevant JNI from your snappy-java-1.0.4.1.jar and put it in your project's root path. Alternatively you could fiddle with the path options described here: http://code.google.com/p/snappy-java/source/browse/src/main/java/org/xerial/snappy/SnappyLoader.java?name=snappy-java-1.0.3-rc4&r=d05ec05c669617273bde3ff34ae995e070b5844a&spec=svn25d8cadcff5ab995564a240431f7ab6933534722 although that seems like more effort and I didn't try it myself. (I did successfully try the extraction running OSX+JDK7). I'll also look into alternatives ASAP though unfortunately last time I checked, the non-JNI Snappy ports weren't nearly as mature - so I'm hesitant to move in that direction unnecessarily. At the very least, I'll make sure to document this so it doesn't bite anyone else! Cheers! |
Just wanted to summarize for others needing this workaround:
And you should be good to go! |
Thank you very much for tracking this down! :)
|
Found this ticket while Googling, and it fixed my problem with Cassandra 1.x on OSX, so thanks! For the record, I had to put the jnilib file into Cassandra's root directory (i.e. $CASSANDRA_HOME), not the lib folder. |
Heh heh- no problem: glad it was helpful :) Sent from my mobile On 09 Jul 2012, at 9:05, Andrew Swanreply@reply.github.com wrote:
|
The root cause should be fixed now, waiting for a point release of Snappy Java. |
Thanks, that's great. Will update Nippy soon as they release 1.0.5. |
Okay, this is now resolved. |
snappy-java-1.0.5-M2.jar works, just replace the older version under cassandra lib. |
Yes, snappy 1.0.5 works just fine with JDK 7 |
Summary: 1.0.4 doesn't work with Mavericks: taoensso/carmine#5 Test Plan: asdf Reviewers: tberman, jyeo, stephan Reviewed By: stephan CC: stephan, jimmy, justin, jyeo, tberman Differential Revision: http://phabricator.thefactory.com/D941
Cassandra 1.2.6 uses snappy-java 1.0.5 instead of 1.0.4.1. snappy java 1.0.4.1 has problem on Java 7 environment. taoensso/carmine#5
This resolves the Snappy JDK7, OSX bug: taoensso/carmine#5
This may be a case of just needing to add instructions, but I have found that while it works in my preferred development environment of Ubuntu with Java 7, it does not work in the equivalent Mac OS environment. I have so far not traced the source of the problem, other than snappy-java (presumably the native lib that the snappy-java JNI interface uses) not being on the class path. Is there something that needs to be installed?
Here is the stack trace:
The text was updated successfully, but these errors were encountered: