How Do You Rename a Table in HBase? How Do You Rename a Table in HBase? shell shell

How Do You Rename a Table in HBase?


To rename a table in HBase, apparently you have to use snapshots. So, you take a snapshot of the table and then clone it as a different name.

In the HBase shell:

disable 'tableName'snapshot 'tableName', 'tableSnapshot'clone_snapshot 'tableSnapshot', 'newTableName'delete_snapshot 'tableSnapshot'drop 'tableName'

SOURCE

http://hbase.apache.org/book.html#table.rename