Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7383A9CC4 for ; Tue, 3 Apr 2012 19:16:47 +0000 (UTC) Received: (qmail 82786 invoked by uid 500); 3 Apr 2012 19:16:47 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 82740 invoked by uid 500); 3 Apr 2012 19:16:47 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 82731 invoked by uid 99); 3 Apr 2012 19:16:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 19:16:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 19:16:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D34C0356AD8 for ; Tue, 3 Apr 2012 19:16:25 +0000 (UTC) Date: Tue, 3 Apr 2012 19:16:25 +0000 (UTC) From: "Keith Turner (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <2036552657.7941.1333480585888.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-643) Rename tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245620#comment-13245620 ] Keith Turner commented on HBASE-643: ------------------------------------ Accumulo supports this feature by using table ids. Tables ids are generated using zookeeper and are never reused (base 36 numbers are used to keep them short and readable). A mapping from table id to table name is stored in zookeeper. To rename a table, lock the table and change the mapping in zookeeper. Accumulo used to not use table ids, it stored the table name in meta and hdfs. Now it uses the table id in hdfs and meta. We were discussing renaming tables, and it seemed so complicated. Then someone thought of this table id solution, it was such an elegant solution and made the problem trivial. Although table ids were implemented to support table renaming, they had the nice side effect of making hdfs and meta entries much shorter. > Rename tables > ------------- > > Key: HBASE-643 > URL: https://issues.apache.org/jira/browse/HBASE-643 > Project: HBase > Issue Type: New Feature > Reporter: Michael Bieniosek > Attachments: copy_table.rb, rename_table.rb > > > It would be nice to be able to rename tables, if this is possible. Some of our internal users are doing things like: upload table mytable -> realize they screwed up -> upload table mytable_2 -> decide mytable_2 looks better -> have to go on using mytable_2 instead of originally desired table name. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira