[
https://issues.apache.org/jira/browse/HBASE-8595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704362#comment-13704362
]
Matteo Bertozzi commented on HBASE-8595:
----------------------------------------
I really don't like the rename implemented with the snapshot.
It's fine if you don't have other choices and you know what you're doing.
but snapshots are not free and if you rename a table using snapshots you loose
the possibility to use your distcp scripts to backup the table, unless you
trigger major compaction to get rid of the links.
the patch posted here is more for people who wants to have an easy way to
rename a table with a single shell command, instead of typing the 5 commands in
the doc book.
> Add rename operation in hbase shell
> -----------------------------------
>
> Key: HBASE-8595
> URL: https://issues.apache.org/jira/browse/HBASE-8595
> Project: HBase
> Issue Type: New Feature
> Components: shell
> Affects Versions: 0.94.8, 0.95.1
> Reporter: Aleksandr Shulman
> Assignee: Aleksandr Shulman
> Priority: Minor
> Fix For: 0.95.2, 0.94.11
>
> Attachments: HBASE-8595-v0.patch
>
>
> We can use a set of snapshot commands to elegantly rename a table. It would
> be nice to wrap all those commands in a single call.
> http://hbase.apache.org/book.html#table.rename
> Also -- the documentation is missing the last step where the original table
> needs to be deleted. I can add that to the docbook.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira