[ 
https://issues.apache.org/jira/browse/HBASE-15611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324913#comment-15324913
 ] 

Sean Busbey commented on HBASE-15611:
-------------------------------------

h3. how can I enable replication for all user tables and column families?

Provided that your HBase deployment includes the command to enable replication 
for all CFs on a table (HBASE-13057 / HBASE-13137), you only need to iterate 
over all user table names and then call that command.

Presuming you have already set up your replication peer correctly, this command 
will also take care of creating the needed tables and column families on the 
destination cluster(s).

{code}
hbase(main):323:0> list.each do |table|
hbase(main):324:1*   enable_table_replication table
hbase(main):325:1> end
{code}

Note that if you do not have replication peer(s) set up, or if connectivity to 
the destination peer(s) is currently not available, these commands will fail.

> add examples to shell docs 
> ---------------------------
>
>                 Key: HBASE-15611
>                 URL: https://issues.apache.org/jira/browse/HBASE-15611
>             Project: HBase
>          Issue Type: Improvement
>          Components: documentation, shell
>            Reporter: Sean Busbey
>              Labels: beginner
>             Fix For: 2.0.0
>
>
> It would be nice if our shell documentation included some additional examples 
> of operational tasks one can perform.
> things to include to come in comments. when we have a patch to submit we can 
> update the jira summary to better reflect what scope we end up with.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to