You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zheng Hu (JIRA)" <ji...@apache.org> on 2017/03/01 03:18:45 UTC
[jira] [Commented] (HBASE-16990) Shell tool to dump table and
namespace privileges
[ https://issues.apache.org/jira/browse/HBASE-16990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889424#comment-15889424 ]
Zheng Hu commented on HBASE-16990:
----------------------------------
[~jerryhe], [~esteban], Thanks for your relpy. To sum up, the following can be improved:
1. Dump table schema with ACLs , other than just ACLs .
2. Maybe we can integrate the dumper to the hbase shell, and reuse hbase-shell framework .
3. Better to provide ut .
En .. I'll try to provide another patch.
> Shell tool to dump table and namespace privileges
> -------------------------------------------------
>
> Key: HBASE-16990
> URL: https://issues.apache.org/jira/browse/HBASE-16990
> Project: HBase
> Issue Type: New Feature
> Components: tooling
> Reporter: Zheng Hu
> Assignee: Zheng Hu
> Priority: Minor
> Attachments: HBASE-16990.v1.patch, HBASE-16990.v2.patch, hbase-site.xml
>
>
> 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.15#6346)