You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "huzheng (JIRA)" <ji...@apache.org> on 2016/11/02 07:52:58 UTC

[jira] [Created] (HBASE-16990) Shell tool to dump table schemas and table privileges

huzheng created HBASE-16990:
-------------------------------

             Summary: 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
            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 which is provide 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)