[
https://issues.apache.org/jira/browse/HBASE-16868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guanghao Zhang updated HBASE-16868:
-----------------------------------
Release Note:
Add a replicate_all flag to replication peer config. The default value is true,
which means all user tables (REPLICATION_SCOPE != 0 ) will be replicated to
peer cluster.
How to config a peer from replicate all to only replicate special
namespace/tablecfs?
Step1. Add a new peer with no namespace/tablecfs config, the replicate_all flag
will be true automatically.
Step2. User want only replicate some namespaces or tables, so set replicate_all
flag to false first.
Step3. Add special namespaces or table-cfs config to the replication peer.
How to config a peer from replicate special namespace/tablecfs to replicate all?
Step1. Add a new peer with special namespace/tablecfs config, the replicate_all
flag will be false automatically.
Step2. User want replicate all user tables, so remove the special
namespace/tablecfs config first.
Step3. Set replicate_all flag to true.
How to config replicate nothing?
Set replicate_all flag to false and no namespace/tablecfs config, then all
tables cannot be replicated to peer cluster.
was:
Add a replicate_all flag to replication peer config. The default value is true,
which means all user tables (REPLICATION_SCOPE != 0 ) will be replicated to
peer cluster.
If you add a new peer with no namespace/tablecfs config, the replicate_all flag
will be true automatically.
If you only need replicate some namespaces or tables, you need set
replicate_all flag to false first. Then add special namespaces or table-cfs
config to the replication peer.
If replicate_all flag is false with no namespace/tablecfs config, it means all
tables cannot be replicated to peer cluster.
> Add a replicate_all flag to avoid misuse the namespaces and table-cfs config
> of replication peer
> ------------------------------------------------------------------------------------------------
>
> Key: HBASE-16868
> URL: https://issues.apache.org/jira/browse/HBASE-16868
> Project: HBase
> Issue Type: Improvement
> Components: Replication
> Affects Versions: 2.0.0, 3.0.0
> Reporter: Guanghao Zhang
> Assignee: Guanghao Zhang
> Priority: Critical
> Fix For: 2.0.0-beta-1
>
> Attachments: HBASE-16868.master.001.patch,
> HBASE-16868.master.002.patch, HBASE-16868.master.003.patch,
> HBASE-16868.master.004.patch, HBASE-16868.master.005.patch,
> HBASE-16868.master.006.patch, HBASE-16868.master.007.patch,
> HBASE-16868.master.008.patch
>
>
> First add a new peer by shell cmd.
> {code}
> add_peer '1', CLUSTER_KEY => "server1.cie.com:2181:/hbase".
> {code}
> If we don't set namespaces and table cfs in peer config. It means replicate
> all tables to the peer cluster.
> Then append a table to the peer config.
> {code}
> append_peer_tableCFs '1', {"table1" => []}
> {code}
> Then this peer will only replicate table1 to the peer cluster. It changes to
> replicate only one table from replicate all tables in the cluster. It is very
> easy to misuse in production cluster. So we should avoid appending table to a
> peer which replicates all table.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)