Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DF8D4200BB3 for ; Wed, 2 Nov 2016 08:53:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DE114160AEA; Wed, 2 Nov 2016 07:53:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 277E2160B0A for ; Wed, 2 Nov 2016 08:53:00 +0100 (CET) Received: (qmail 62155 invoked by uid 500); 2 Nov 2016 07:52:59 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 62136 invoked by uid 99); 2 Nov 2016 07:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 07:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AC89E2C2A69 for ; Wed, 2 Nov 2016 07:52:58 +0000 (UTC) Date: Wed, 2 Nov 2016 07:52:58 +0000 (UTC) From: "huzheng (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-16990) Shell tool to dump table schemas and table privileges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 07:53:01 -0000 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)