hbase记录-修改压缩格式

在业务空闲的时候修改压缩格式

先测试

---测试表
create 'test', { NAME => 'c',VERSIONS => 1}
desc 'test'
disable 'test'
alter 'test', NAME => 'c',COMPRESSION => 'snappy'
enable 'test'
major_compact 'test'   ---耗时过长

 

disable 'contactlist_event_data'
alter 'contactlist_event_data', NAME => 'fields',COMPRESSION => 'snappy'
alter 'contactlist_event_data', NAME => 'info',COMPRESSION => 'snappy'
enable 'contactlist_event_data'
major_compact 'contactlist_event_data'


disable 'crs_data_report'
alter 'contactlist_event_data', NAME => 'cf1',COMPRESSION => 'snappy'
enable 'contactlist_event_data'
major_compact 'contactlist_event_data'

disable 'crs_history_report'
alter 'crs_history_report', NAME => 'history',COMPRESSION => 'snappy'
enable 'crs_history_report'
major_compact 'crs_history_report'

disable 'event_data'
alter 'event_data' , NAME => 'fields',COMPRESSION => 'snappy'
alter 'event_data' , NAME => 'info',COMPRESSION => 'snappy'
enable 'event_data'
major_compact 'event_data'

disable 'user_variables'
alter 'user_variables', NAME => 'bizTime',COMPRESSION => 'snappy'
alter 'user_variables', NAME => 'variables',COMPRESSION => 'snappy'
enable 'user_variables'
major_compact 'user_variables'

posted @ 2018-07-09 10:06  信方  阅读(422)  评论(0编辑  收藏  举报