update_peer_config
Contents
Definition
Updates configuration parameters of the specified replication relationship (peer). Can be useful to configure custom replication endpoints.
Usage
update_peer_config '<peer_id>'[,
DATA => {'<key_name>' => <key_value>, [...]}][,
CONFIG => {'<config_name>' => '<config_value>', [...]}]
Parameter | Description |
---|---|
peer_id |
A unique identifier of the replication peer. Should not contain hyphens |
key_name |
A name of the peer data parameter |
key_value |
A value of the peer data parameter |
config_name |
A name of the peer configuration parameter |
config_value |
A value of the peer configuration parameter |
Examples
hbase(main):010:0> update_peer_config '1', CONFIG => {'config1' => 'value1'} Took 0.0139 seconds hbase(main):011:0> get_peer_config '1' Cluster Key serov-adh-1.ru-central1.internal,serov-adh-2.ru-central1.internal,serov-adh-3.ru-central1.internal:2181:/hbase config1 value1 Took 0.0047 seconds => #<Java::OrgApacheHadoopHbaseReplication::ReplicationPeerConfig:0x1ff463bb>