kingbobo / hadoop-snappy

Automatically exported from code.google.com/p/hadoop-snappy
Apache License 2.0
0 stars 0 forks source link

Add support for JSnappy to provide a pure Java implementation of SnappyCodec #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SequenceFile are sometimes created in environments where native libraries are 
not available or difficult to set up (think AS/400 or z/OS). In those 
enviroments, the only available compression codec is DefaultCodec which has a 
pure java implementation.

With the availability of JSnappy, a pure java implementation of Snappy, it 
would be nice to have a pure Java implementation of SnappyCodec so the power of 
Snappy compression becomes available on those platforms that lack native Snappy 
libraries.

The included patch assumes that JSnappy is available as jsnappy:jsnappy. As far 
as I know jsnappy must be added manually as I am not aware of any official 
maven artifact being available.

Original issue reported on code.google.com by Mathias....@gmail.com on 2 Jan 2012 at 1:13

Attachments:

GoogleCodeExporter commented 9 years ago
Information about adding it manually to maven local repo:

Execute:

mkdir -p ~/.m2/repository/jsnappy/jsnappy/0.9.1
cp build/lib/JSnappy-0.9.1.jar 
~/.m2/repository/jsnappy/jsnappy/0.9.1/jsnappy-0.9.1.jar

And download jsnappy-0.9.1.pom into ~/.m2/repository/jsnappy/jsnappy/0.9.1/

@Mathias: Thank you very much for your patch. Much useful.

Original comment by alfonso.nishikawa on 30 Nov 2012 at 8:29

Attachments:

GoogleCodeExporter commented 9 years ago
Errata: Should read "about adding JSnappy to maven repo"

Original comment by alfonso.nishikawa on 30 Nov 2012 at 8:30