list_peers

Definition

Lists all replication relationships (peers) between the source and destination HBase clusters or custom replication endpoints.

Usage

list_peers
Output parameters
Parameter Description

PEER_ID

A unique identifier of the replication peer

CLUSTER_KEY

A full address of the second HBase cluster in the replication relationship. Uses the following format based on HBase configuration parameters: <hbase.zookeeper.quorum>:<hbase.zookeeper.property.clientPort>:<zookeeper.znode.parent>

ENDPOINT_CLASSNAME

A name of the custom class. Filled in if replication is configured for a custom replication endpoint

STATE

A replication peer state. Can be changed via the disable_peer and enable_peer commands

REPLICATE_ALL

A boolean value of the REPLICATE_ALL flag. Can be changed via the set_peer_replicate_all command

NAMESPACES

Namespaces that are included or excluded from the peer configuration. Excluded entities are displayed with a prefix ! (for example, !ns1;ns2)

TABLE_CFS

Tables/column families, included or excluded from the peer configuration. Excluded entities are displayed with a prefix ! (for example, !default.articles)

BANDWIDTH

A source bandwidth (per Region Server). Can be changed via the set_peer_bandwidth command

Examples

hbase(main):033: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  ENABLED false  default.articles 0
1 row(s)
Took 0.0060 seconds
=> #<Java::JavaUtil::ArrayList:0x41059616>
Found a mistake? Seleсt text and press Ctrl+Enter to report it