Created 07-30-2018 04:32 PM
Dear All,
I am very new to HBase and HBase snapshot.
I want to ask a question regarding the HBase Snapshot.
So, when I take an HBase snapshot of a table. Does this snapshot continuously track the changes of this table?
If it is not, which mean that I need to continuously delete the old snapshot and take a new snapshot like once a week, right?
Thanks,
Bin Ye
Created 07-30-2018 04:53 PM
Hi @Bin Ye
Does this snapshot continuously track the changes of this table?
No, snapshot is like a photo of the table data at certain point of time. Snapshot will also mark data to prevent it from being deleted.
For more information please review this HCC link posts
https://community.hortonworks.com/questions/102843/hbase-snapshot-or-backup.html
There are differences between snapshot and backup and incremental back up which you can review in the above link. Hopefully this will help you decide if snapshot is the correct solution for you or if you should go for backup.
HTH
Created 07-30-2018 04:52 PM
An HBase snapshot is an immutable, point-in-time shallow copy of a table. It does not change over time.
If you want to capture the changes made to a table since an old snapshot in a new snapshot, you must take a new snapshot.
Created 07-30-2018 04:53 PM
Hi @Bin Ye
Does this snapshot continuously track the changes of this table?
No, snapshot is like a photo of the table data at certain point of time. Snapshot will also mark data to prevent it from being deleted.
For more information please review this HCC link posts
https://community.hortonworks.com/questions/102843/hbase-snapshot-or-backup.html
There are differences between snapshot and backup and incremental back up which you can review in the above link. Hopefully this will help you decide if snapshot is the correct solution for you or if you should go for backup.
HTH
Created 07-30-2018 06:25 PM
Dear @Felix Albani,
I just had a look of the link you send to me. And i did some tests.
hbase backup set add backtest mytestTable
The above command gives me an error
org.apache.hadoop.hbase.TableNotFoundException: Table 'hbase:backup' was not found, got: WRONG_ID.
Why is this happening?
Thanks
Created 07-30-2018 07:01 PM
Please check if the property "hbase.backup.enable" is set correctly in hbase-site.xml
Also please review this other documentation link specific to backups with hbase:
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_data-access/content/ch_hbase_bar.html
if you continue to experience issue please open a separate hcc thread for this problem. If the already provided information has helped you answer the original question please remember to login and mark the answer as Accepted.