Giter VIP home page Giter VIP logo

Comments (10)

ptaoussanis avatar ptaoussanis commented on June 8, 2024 1

Just wanted to summarize for others needing this workaround:

  1. If you don't already have it, get the Snappy jar file from http://code.google.com/p/snappy-java/downloads/list
  2. Extract the jar somewhere (it's just a zip file).
  3. 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.

ptaoussanis avatar ptaoussanis commented on June 8, 2024

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.

rplevy-draker avatar rplevy-draker commented on June 8, 2024

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:

  1. If you don't already have it, get the Snappy jar file from
    http://code.google.com/p/snappy-java/downloads/list
  2. Extract the jar file somewhere (a jar is just a zip file).
  3. 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.

andrewswan avatar andrewswan commented on June 8, 2024

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.

ptaoussanis avatar ptaoussanis commented on June 8, 2024

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.

michaelklishin avatar michaelklishin commented on June 8, 2024

The root cause should be fixed now, waiting for a point release of Snappy Java.

from carmine.

ptaoussanis avatar ptaoussanis commented on June 8, 2024

Thanks, that's great. Will update Nippy soon as they release 1.0.5.

from carmine.

ptaoussanis avatar ptaoussanis commented on June 8, 2024

Okay, this is now resolved.

from carmine.

jhua avatar jhua commented on June 8, 2024

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.

Igosuki avatar Igosuki commented on June 8, 2024

Yes, snappy 1.0.5 works just fine with JDK 7

from carmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.