HBASE-19602 Cleanup the usage of ReplicationAdmin from document

This commit is contained in:
Guanghao Zhang 2017-12-23 10:25:08 +08:00
parent 0dadb45ad7
commit 2f25589422
4 changed files with 5 additions and 5 deletions

View File

@ -1604,7 +1604,7 @@ possible configurations would overwhelm and obscure the important.
If this is enabled, a replication peer named "region_replica_replication" will be created If this is enabled, a replication peer named "region_replica_replication" will be created
which will tail the logs and replicate the mutations to region replicas for tables that which will tail the logs and replicate the mutations to region replicas for tables that
have region replication > 1. If this is enabled once, disabling this replication also have region replication > 1. If this is enabled once, disabling this replication also
requires disabling the replication peer using shell or ReplicationAdmin java class. requires disabling the replication peer using shell or Admin java class.
Replication to secondary region replicas works over standard inter-cluster replication. Replication to secondary region replicas works over standard inter-cluster replication.
</description> </description>
</property> </property>

View File

@ -50,7 +50,7 @@ public class ServerRegionReplicaUtil extends RegionReplicaUtil {
* If this is enabled, a replication peer named "region_replica_replication" will be created * If this is enabled, a replication peer named "region_replica_replication" will be created
* which will tail the logs and replicate the mutatations to region replicas for tables that * which will tail the logs and replicate the mutatations to region replicas for tables that
* have region replication &gt; 1. If this is enabled once, disabling this replication also * have region replication &gt; 1. If this is enabled once, disabling this replication also
* requires disabling the replication peer using shell or ReplicationAdmin java class. * requires disabling the replication peer using shell or {@link Admin} java class.
* Replication to secondary region replicas works over standard inter-cluster replication.· * Replication to secondary region replicas works over standard inter-cluster replication.·
*/ */
public static final String REGION_REPLICA_REPLICATION_CONF_KEY public static final String REGION_REPLICA_REPLICATION_CONF_KEY

View File

@ -2505,7 +2505,7 @@ Committing writes in the same order as in primary ensures that the secondaries w
Async WAL Replication is *disabled* by default. You can enable this feature by setting `hbase.region.replica.replication.enabled` to `true`. Async WAL Replication is *disabled* by default. You can enable this feature by setting `hbase.region.replica.replication.enabled` to `true`.
Asyn WAL Replication feature will add a new replication peer named `region_replica_replication` as a replication peer when you create a table with region replication > 1 for the first time. Once enabled, if you want to disable this feature, you need to do two actions: Asyn WAL Replication feature will add a new replication peer named `region_replica_replication` as a replication peer when you create a table with region replication > 1 for the first time. Once enabled, if you want to disable this feature, you need to do two actions:
* Set configuration property `hbase.region.replica.replication.enabled` to false in `hbase-site.xml` (see Configuration section below) * Set configuration property `hbase.region.replica.replication.enabled` to false in `hbase-site.xml` (see Configuration section below)
* Disable the replication peer named `region_replica_replication` in the cluster using hbase shell or `ReplicationAdmin` class: * Disable the replication peer named `region_replica_replication` in the cluster using hbase shell or `Admin` class:
[source,bourne] [source,bourne]
---- ----
hbase> disable_peer 'region_replica_replication' hbase> disable_peer 'region_replica_replication'
@ -2558,7 +2558,7 @@ Instead you can change the number of region replicas per table to increase or de
<name>hbase.region.replica.replication.enabled</name> <name>hbase.region.replica.replication.enabled</name>
<value>true</value> <value>true</value>
<description> <description>
Whether asynchronous WAL replication to the secondary region replicas is enabled or not. If this is enabled, a replication peer named "region_replica_replication" will be created which will tail the logs and replicate the mutations to region replicas for tables that have region replication > 1. If this is enabled once, disabling this replication also requires disabling the replication peer using shell or ReplicationAdmin java class. Replication to secondary region replicas works over standard inter-cluster replication. Whether asynchronous WAL replication to the secondary region replicas is enabled or not. If this is enabled, a replication peer named "region_replica_replication" will be created which will tail the logs and replicate the mutations to region replicas for tables that have region replication > 1. If this is enabled once, disabling this replication also requires disabling the replication peer using shell or Admin java class. Replication to secondary region replicas works over standard inter-cluster replication.
</description> </description>
</property> </property>
<property> <property>

View File

@ -2033,7 +2033,7 @@ A comma-separated list of
If this is enabled, a replication peer named "region_replica_replication" will be created If this is enabled, a replication peer named "region_replica_replication" will be created
which will tail the logs and replicate the mutations to region replicas for tables that which will tail the logs and replicate the mutations to region replicas for tables that
have region replication > 1. If this is enabled once, disabling this replication also have region replication > 1. If this is enabled once, disabling this replication also
requires disabling the replication peer using shell or ReplicationAdmin java class. requires disabling the replication peer using shell or Admin java class.
Replication to secondary region replicas works over standard inter-cluster replication. Replication to secondary region replicas works over standard inter-cluster replication.