You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Oleg Dulin <ol...@gmail.com> on 2013/05/07 20:35:56 UTC

Cassanrda 1.1.11 compression: how to tell if it works ?

I have a column family with really wide rows set to use Snappy like this:

compression_options = {'sstable_compression' : 
'org.apache.cassandra.io.compress.SnappyCompressor'}  

My understanding is that if a file is compressed I should not be able 
to use "strings" command to view its contents. But it seems like I can 
view the contents like this:

strings *-Data.db 

At what point does compression start ? How can I confirm it is working ?


-- 
Regards,
Oleg Dulin
NYC Java Big Data Engineer
http://www.olegdulin.com/

Re: Cassanrda 1.1.11 compression: how to tell if it works ?

Posted by Robert Coli <rc...@eventbrite.com>.
On Thu, May 9, 2013 at 3:38 PM, aaron morton <aa...@thelastpickle.com> wrote:
>> At what point does compression start ?
> It starts for new SSTables created after the schema was altered.

@OP :

If you want to compress all existing SSTables, use "upgradesstables"
or "cleanup", both of which rewrite existing SSTables 1:1.

=Rob

Re: Cassanrda 1.1.11 compression: how to tell if it works ?

Posted by aaron morton <aa...@thelastpickle.com>.
> At what point does compression start ? 
It starts for new SSTables created after the schema was altered. 

> How can I confirm it is working ?
Compressed SSTables include a -CompressionInfo.db component on disk. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 8/05/2013, at 6:35 AM, Oleg Dulin <ol...@gmail.com> wrote:

> I have a column family with really wide rows set to use Snappy like this:
> 
> compression_options = {'sstable_compression' : 'org.apache.cassandra.io.compress.SnappyCompressor'}  
> 
> My understanding is that if a file is compressed I should not be able to use "strings" command to view its contents. But it seems like I can view the contents like this:
> 
> strings *-Data.db 
> 
> At what point does compression start ? How can I confirm it is working ?
> 
> 
> -- 
> Regards,
> Oleg Dulin
> NYC Java Big Data Engineer
> http://www.olegdulin.com/