Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Impact when rename hbase big table with snapshot command

avatar
Expert Contributor
HI, we work on cdh5.3.2-0.98.5 hbase, there is a hbase table has 3TB size. hbase> disable ‘tableName’ hbase> snapshot ‘tableName’, ‘tableSnapshot’ hbase> clone_snapshot ‘tableSnapshot’, ‘newNameSpace:newTableName’ hbase> delete_snapshot ‘tableSnapshot’ hbase> drop ‘tableName‘ We would like to rename use above shell script to change namespace, Is it will take more time to create archive file? is renamed table impact of performance than the original table? etc, scan from PIG job,the behaviour when changing old data. In other words, what is the differnt between the ‘newNameSpace:newTableName’ table and ‘tableName’? Thanks
1 ACCEPTED SOLUTION

avatar
Mentor
There will not be a performance difference in the IO paths, as you will
still be using the same HFiles, and they will behave as the same table.

View solution in original post

3 REPLIES 3

avatar
Mentor
There will not be a performance difference in the IO paths, as you will
still be using the same HFiles, and they will behave as the same table.

avatar
Expert Contributor
Thanks for your reply,
What is the behaviour of archive HFile when update the old data?
is it the archive HFile will be changed or move to data namespace folder again when the region was compacted or splited?

avatar
Expert Contributor
And I would like to make sure that support namespace when rename the table by snapshot. Thanks