Comments (10)
Just wanted to summarize for others needing this workaround:
- If you don't already have it, get the Snappy jar file from http://code.google.com/p/snappy-java/downloads/list
- Extract the jar somewhere (it's just a zip file).
- In org/xerial/snappy/native/Mac/ you'll find i386 (32bit) and x86_64 (64bit) .jnilib files. Copy the appropriate one to your project's root path (where your project.clj is).
And you should be good to go!
from carmine.
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!
from carmine.
Thank you very much for tracking this down! :)
On Jun 20, 2012 7:08 AM, "Peter Taoussanis" <
[email protected]>
wrote:
Just wanted to clarify steps for those needing this workaround:
- If you don't already have it, get the Snappy jar file from
http://code.google.com/p/snappy-java/downloads/list- Extract the jar file somewhere (a jar is just a zip file).
- In org/xerial/snappy/native/Mac/ you'll find i386 (32bit) and x86_64
(64bit) .jnilib files. Copy the appropriate one to your project's root path
(where your project.clj is).
Reply to this email directly or view it on GitHub:
#5 (comment)
from carmine.
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.
from carmine.
Heh heh- no problem: glad it was helpful :)
Sent from my mobile
On 09 Jul 2012, at 9:05, Andrew [email protected] wrote:
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.
Reply to this email directly or view it on GitHub:
#5 (comment)
from carmine.
The root cause should be fixed now, waiting for a point release of Snappy Java.
from carmine.
Thanks, that's great. Will update Nippy soon as they release 1.0.5.
from carmine.
Okay, this is now resolved.
from carmine.
snappy-java-1.0.5-M2.jar works, just replace the older version under cassandra lib.
http://code.google.com/p/snappy-java/downloads/detail?name=snappy-java-1.0.5-M2.jar&can=2&q=
from carmine.
Yes, snappy 1.0.5 works just fine with JDK 7
from carmine.
Related Issues (20)
- Problems using carmine store HOT 5
- `parse-map` stop working when upgrade from 3.2.0 to 3.3.0 HOT 10
- broken link to nippy in README HOT 1
- Support commands in RediSearch, RedisJSON, RedisTimeSeries, RedisBloom HOT 2
- Handling locked messages after JVM crash HOT 3
- Carmine v4 first core pre-release
- Carmine v4 Tundra
- Carmine v4 Sentinel support
- Carmine v4 Cluster support
- message-queue/queue-names is broken (and untested) HOT 1
- Feedback on v3.3 migration instructions HOT 3
- Silently catches OutOfMemoryErrors without rethrowing HOT 8
- Mutiple atomic transactions as a pipeline HOT 3
- Unexpected behavior with `(parse-map ... :keywordize)` HOT 3
- Does Carmine support DragonflyDB? HOT 10
- Connection loss/failure detection on MQ HOT 12
- Pub/Sub posts to wrong handler fn HOT 5
- Carmine message-queue: allow throughput control HOT 4
- Block on handler being ready when creating new listeners? HOT 4
- Closing the listener produces at least one error message to handler, sometimes several. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carmine.