enable_table_replication

Definition

Enables replication for the specified table. The REPLICATION_SCOPE flag is set to 1 for all table column families. Also, the table starts being output via the list_replicated_tables command.

Usage

enable_table_replication '[<namespace_name>:]<table_name>'
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

Examples

hbase(main):021:0> enable_table_replication 'articles'
The replication of table 'articles' successfully enabled
Took 1.2512 seconds
hbase(main):064:0> list_replicated_tables
TABLE:COLUMNFAMILY                                  ReplicationType
 articles:basic                                     GLOBAL
 articles:tags                                      GLOBAL
2 row(s)
Took 0.0381 seconds
hbase(main):065: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 => '1', 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 => '1', 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.1300 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it