[ https://issues.apache.org/jira/browse/HBASE-16990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643654#comment-15643654 ]
Guanghao Zhang commented on HBASE-16990: ---------------------------------------- bq. Recently, we are trying to migrate tables from Cluster-A to Cluster-B The normal steps of migrating tables from Cluster-A to Cluster-B are: 1. take a snapshot in Cluster-A 2. ExportSnapshot to Cluster-B 3. restore snapshot in Cluster-B Maybe we can write the user permissions into the snapshot info. Then restore it on Cluster-B. Any ideas? [~mbertozzi] > Shell tool to dump table schemas and table privileges > ----------------------------------------------------- > > Key: HBASE-16990 > URL: https://issues.apache.org/jira/browse/HBASE-16990 > Project: HBase > Issue Type: New Feature > Components: tooling > Reporter: huzheng > Assignee: huzheng > Priority: Minor > > Recently, we are trying to migrate tables from Cluster-A to Cluster-B, I > found that HBase lack some useful tools : > 1. dump table schema, like mysqldump in mysql > 2. dump table privileges, like pt-show-grants in mysql provided by Percona. > I think we can add a dump sub-command looks like (JUST simple demo) : > {code} > $ ./bin/hbase dump -t test_table --with-privileges > ~/test_table.hsh > $ cat ~/test_table.hsh > create 'test_table', {NAME=>'f1'} > grant 'test_user', 'RW', 'test_table' > {code} > Maybe I can contribute ... :) > How do you think ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)