hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-643) Rename tables
Date Tue, 03 Apr 2012 19:16:25 GMT

    [ 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

        

Mime
View raw message