set_peer_exclude_tableCFs
Definition
Sets not replicable tables/column families for the replication relationship (peer). Remember the following restrictions:
-
The
REPLICATE_ALL
flag should have thetrue
value in the replication peer configuration (see set_peer_replicate_all). -
If the peer configuration already contains some excluded namespace (added via set_peer_exclude_namespaces), then setting its tables with this command is not allowed.
-
If you need to clear excluded tables/column families, run the current command with an empty dictionary as the second input parameter. Do not use the remove_peer_tableCFs command.
Usage
set_peer_exclude_tableCFs '<peer_id>',
{'[<namespace_name>:]<table_name>' => <column_families_array[]>[,...]}
Parameter | Description |
---|---|
peer_id |
A unique identifier of the replication peer. Should not contain hyphens |
namespace_name |
A namespace name |
table_name |
A table name |
column_families_array |
An array of strings specified in the format |
Examples
Excluding tables/column families
hbase(main):022:0> set_peer_exclude_tableCFs '1', {'articles' => []} Took 0.0090 seconds hbase(main):023:0> list_peers PEER_ID CLUSTER_KEY ENDPOINT_CLASSNAME STATE REPLICATE_ALL NAMESPACES TABLE_CFS BANDWIDTH 1 serov-adh-1.ru-central1.internal,serov-adh-2.ru-central1.internal,serov-adh-3.ru-central1.internal:2181:/hbase DISABLED true !default.articles 0 1 row(s) Took 0.0088 seconds => #<Java::JavaUtil::ArrayList:0x1d585fb>
Removing excluded tables/column families
hbase(main):027:0> set_peer_exclude_tableCFs '1', {} Took 0.0085 seconds hbase(main):028:0> list_peers PEER_ID CLUSTER_KEY ENDPOINT_CLASSNAME STATE REPLICATE_ALL NAMESPACES TABLE_CFS BANDWIDTH 1 serov-adh-1.ru-central1.internal,serov-adh-2.ru-central1.internal,serov-adh-3.ru-central1.internal:2181:/hbase DISABLED true 0 1 row(s) Took 0.0057 seconds => #<Java::JavaUtil::ArrayList:0x26c59348>