[ https://issues.apache.org/jira/browse/HBASE-7875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710025#comment-13710025 ]
Sergey Shelukhin commented on HBASE-7875: ----------------------------------------- nit: flag was renamed but not the methods. Otherwise looks good > introduce a compaction switch in HBase Shell > -------------------------------------------- > > Key: HBASE-7875 > URL: https://issues.apache.org/jira/browse/HBASE-7875 > Project: HBase > Issue Type: New Feature > Components: shell > Affects Versions: 0.95.2 > Reporter: Liang Xie > Assignee: Liang Xie > Priority: Trivial > Attachments: HBASE-7875.txt, HBASE-7875-v1.patch, > HBASE-7875-v1.patch, HBase-7875-v2.txt, HBase-7875-v3.txt > > > A trivial patch to add an per-table compaction switch. it would be helpful > for OPS or manual testing in real cluster, etc. > Usage: > hbase(main):016:0> alter 'YCSBTest', {METHOD => 'table_att', > COMPACTION_ENABLE => 'FALSE'} > Updating all regions with the new schema... > 64/64 regions updated. > Done. > 0 row(s) in 1.1290 seconds > hbase(main):017:0> describe 'YCSBTest' > DESCRIPTION > ENABLED > > {NAME => 'YCSBTest', COMPACTION_ENABLE => 'false', SPLIT_POLICY => > 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPoli true > > cy', FAMILIES => [{NAME => 'test', DATA_BLOCK_ENCODING => 'NONE', > BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', COMPRESSION => 'S > > NAPPY', VERSIONS => '1', TTL => '2147483647', MIN_VERSIONS => '0', > KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', ENCODE_ON_DI > > SK => 'true', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]} > > > 1 row(s) in 0.0210 seconds -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira