hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esteban Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16990) Shell tool to dump table and namespace privileges
Date Mon, 27 Feb 2017 21:27:45 GMT

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

Esteban Gutierrez commented on HBASE-16990:
-------------------------------------------

+1 [~jinghe]'s comments. I'm also on the fence with the overlap part with user_permission.
I'd rather have a tool that can completely replicate a table schema including ACLs with a
focus similar to mysqldump than overloading the hbase shell. A possible solution for that
would be to modify the existing hbase shell to have an non-interactive/non-format mode (similar
to pgsql) and integrate the same functionality to the hbase shell. Either way I'm fine with
that.

> 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)

Mime
View raw message