Questions tagged [snappy]

Snappy is a compression algorithm for byte streams and a library implementing this algorithm. The standard distribution includes bindings for C and C++; there are third-party bindings for many other languages.

Snappy does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger. On a single core of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about 500 MB/sec or more.

Snappy is widely used inside Google, in everything from BigTable and MapReduce to Google's internal systems.

366 questions
0
votes
1 answer

Is ORC File with Snappy Compression Splittable at Stripe?

Is ORC File with Snappy Compression Splittable at stripes? As far as i know Snappy Compressed File is not splittable. But i have read in a blog that snappy compressed file is splittable at stripes. Is that true?
yoga
  • 1,929
  • 2
  • 15
  • 18
0
votes
1 answer

Why am I getting negative compressions, for Gzip, Snappy, Smile?

I was trying to investigate what compression was suitable for my application for compression JSON string. The aim here is to compression entity JSON before persisting to REDIS. Here are my results Gzip Compression Trial compression percent :…
R K Punjal
  • 1,445
  • 1
  • 15
  • 20
0
votes
1 answer

symfony, knpLabs/snappy, generate, pdf, font,

I have a question. I am using knpLabs/snappy bundle to generate a pdf from a twig template in my symfonyproject. Everything works fine but the only problem is that it won't load my google-font. Is it possible to use a google font? My googlefont is…
Tinus
  • 29
  • 3
0
votes
2 answers

Error creating a Cluster in Apache Ambari (snappy package)

I get the following error: resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install snappy-devel' returned 1. Error: Package: snappy-devel-1.0.5-1.el6.x86_64 (HDP-UTILS-1.1.0.20) Requires: snappy(x86-64) =…
mustek
  • 3
  • 5
0
votes
2 answers

C++ program requiring libsnappy

I am trying to make and build a C++ program (available here https://github.com/mortehu/text-classifier) which requires libsnappy and Capn Proto. I believe I am having an issue with libsnappy as after running the following commands: configure make…
Liam Flynn
  • 2,009
  • 3
  • 17
  • 16
0
votes
1 answer

Linking C++ libraries for Capn Pronto and Snappy

I am trying to compile a c++ project, and it requires capn pronto and snappy. I have installed these using: brew install capnp brew install snappy But I think I now need to link these libraries as I am getting the following error when I attempt to…
Liam Flynn
  • 2,009
  • 3
  • 17
  • 16
0
votes
1 answer

How to import google snappy to eclipse C++ project

I have an eclipse C++ project and downloaded the google snappy project files (http://google.github.io/snappy/) over into eclipse. Once I attempt to compile, I receive an error stating: fatal error: snappy-stubs-public.h: No such file or…
user1686342
  • 1,265
  • 1
  • 18
  • 24
0
votes
0 answers

How to enable Snappy compression on Avro-backed Hive table when STOREing from Pig using HCatWriter

I have a Hive table I created like this: set hive.exec.compress.output=true; set avro.output.codec=snappy; CREATE EXTERNAL TABLE my_table ( aaa STRING, ... ) STORED AS AVRO LOCATION '/somewhere/my_table'; I now want to load data into this…
0
votes
1 answer

How to install snappy on Hadoop 1.2.1

Is snappy integrated with hadoop or it needs to be installed separately with hadoop 1.2.1.I added following properties in mapred-site.xml file for compressing my map files. mapred.compress.map.output
0
votes
0 answers

Laravel / Snappy: can not generate PDF or create folder

This is my code: $offer = Offer::find($id); $url = URL::to('/offers/view/' . $id . '/pdf'); PDF::loadFile($url) ->callSettings() ->save('/tisa/src/public/pdf/offer/Tisa-ponudba_'. $offer->code .'.pdf'); I am getting following…
be-codified
  • 5,704
  • 18
  • 41
  • 65
0
votes
1 answer

Setup for HTML to PDF on server

Im using Laravel and am trying to use a package for easy HTML to PDF conversion. The one I'm currently trying is 'snappy': https://github.com/barryvdh/laravel-snappy Am I missing a step for configuring locally in MAMP? When I followed the…
Alix Ohrt
  • 209
  • 2
  • 10
0
votes
0 answers

Generate a PDF file from partial view using Knp Snappy

I want to generate a pdf file from a partial view twig which extends an other view. this is how I generate the PDF from the partial view: public function generatePdfAction(Request $request) { //initialize $employee $html =…
mehdi
  • 147
  • 1
  • 4
  • 14
0
votes
2 answers

Spark - WARN LoadSnappy: Snappy native library not loaded

Trying to run an exercise from Spark Summit 2014. I keep getting the following when running the command in terminal: Spark assembly has been built with Hive, including Datanucleus jars on classpath Java HotSpot(TM) 64-Bit Server VM warning: ignoring…
trek
  • 15
  • 3
0
votes
1 answer

Brew Install Snappy

I'm trying to install snappy via Brew, but am getting this error: ->brew install snappy ==> Downloading https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz curl: (35) Proxy CONNECT followed by 1891 bytes of opaque data. Data ignored (known bug…
dvreed77
  • 2,217
  • 2
  • 27
  • 42
0
votes
1 answer

Error while reading Snappy compressed file

I am reading a Snappy Compressed file from local through java. File snappyFile = new File(fileName); Configuration conf = new Configuration(); CompressionCodec codec =…
salmanbw
  • 1,301
  • 2
  • 17
  • 23