Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Impact when rename hbase big table with snapshot command
Labels:
- Labels:
-
Apache HBase
Expert Contributor
Created on 07-27-2015 07:21 PM - edited 09-16-2022 02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Mentor
Created 07-27-2015 07:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
still be using the same HFiles, and they will behave as the same table.
3 REPLIES 3
Mentor
Created 07-27-2015 07:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
still be using the same HFiles, and they will behave as the same table.
Expert Contributor
Created 07-27-2015 08:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
Expert Contributor
Created 07-28-2015 01:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And I would like to make sure that support namespace when rename the table by snapshot. Thanks
