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
Post a Comment