How to enable compression on an existing Hbase table? -


i have big hbase table apdata, not set compressed when created. right it's 1.5tb. wanna enable compression feature on table. did following:

(1)disable apdata (2)alter apdata,{name=>'cf1',compression=>'snappy'} (3)enable 'apdata'. 

but when use "desc apdata" see configuration, it's still showing:

compression => 'none'

why didn't take effect? how should compress table please, , make sure future data compressed automatically when inserted.

thanks in advance!

did configure snappy. verify first snappy loaded in nodes. verify please use command.

hbase org.apache.hadoop.hbase.util.compressiontest hdfs://host/path/to/hbase snappy

once snappy test successful. mentioned above compression should work.

for more detail configuration , installation of snappy: http://hbase.apache.org/0.94/book/snappy.compression.html


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -