[ https://issues.apache.org/jira/browse/HBASE-13057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323969#comment-14323969 ]
Ashish Singhi commented on HBASE-13057: --------------------------------------- Added {{enableTableRep}} and {{disableTableRep}} java APIs in {{ReplicationAdmin.java}} to help user to easily enable and disable the replication. Added {{enable_table_replication}} and {{disable_table_replication}} hbase shell commands for the same. Please review and let me know your thoughts. > Provide client utility to easily enable and disable table replication > --------------------------------------------------------------------- > > Key: HBASE-13057 > URL: https://issues.apache.org/jira/browse/HBASE-13057 > Project: HBase > Issue Type: New Feature > Components: Replication > Affects Versions: 0.98.10 > Reporter: Ashish Singhi > Assignee: Ashish Singhi > Attachments: HBASE-13057.patch > > > Currently to enable replication for a table user has to > 1) Disable the table > 2) Set the replication scope > 3) enable the table > and also create a table with same name and CFs in peer cluster(s). > To help user we can provide client API's to enable and disable table > replication. > So that user has to call only one API i.e., enable table replication which > will, > 1. Create a table with same name and CFs in the peer cluster(s) > 2. Disable the table > 3. Set the replication scope > 4. Enable the table > If user wants to disable table replication then he/she only has to call > disable table replication API which will, > 1. Disable the table > 2. Set the replication scope > 3. Enable the table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)