disable_table_replication
Contents
Definition
Disables replication for the specified table. The REPLICATION_SCOPE
flag is set to 0
for all table column families. Also, the table stops being output via the list_replicated_tables command.
Usage
disable_table_replication '[<namespace_name>:]<table_name>'
Parameter | Description |
---|---|
namespace_name |
A namespace name |
table_name |
A table name |
Examples
hbase(main):010:0> disable_table_replication 'articles' Replication of table 'articles' successfully disabled. Took 1.4515 seconds hbase(main):069:0> list_replicated_tables TABLE:COLUMNFAMILY ReplicationType 0 row(s) Took 0.0066 seconds hbase(main):070:0> describe 'articles' Table articles is ENABLED articles COLUMN FAMILIES DESCRIPTION {NAME => 'basic', VERSIONS => '5', EVICT_BLOCKS_ON_CLOSE => 'false', NEW_VERSION_BEHAVIOR => 'false', KEEP_DELETED_CELLS => 'FALSE', CACHE_DATA_ON_WRITE => ' false', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER => 'ROW', CACHE_INDEX_ON_WRITE => 'false' , IN_MEMORY => 'false', CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLOCKSIZE => '6553 6'} {NAME => 'tags', VERSIONS => '5', EVICT_BLOCKS_ON_CLOSE => 'false', NEW_VERSION_BEHAVIOR => 'false', KEEP_DELETED_CELLS => 'FALSE', CACHE_DATA_ON_WRITE => 'f alse', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER => 'ROW', CACHE_INDEX_ON_WRITE => 'false', IN_MEMORY => 'false', CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLOCKSIZE => '65536 '} 2 row(s) Took 0.0208 seconds