Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase Snapshot

Solved Go to solution
Highlighted

HBase Snapshot

New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: HBase Snapshot

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://es.hortonworks.com/blog/coming-hdp-2-5-incremental-backup-restore-apache-hbase-apache-phoeni...

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

4 REPLIES 4

Re: HBase Snapshot

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.

Re: HBase Snapshot

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://es.hortonworks.com/blog/coming-hdp-2-5-incremental-backup-restore-apache-hbase-apache-phoeni...

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

Re: HBase Snapshot

New Contributor

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

Re: HBase Snapshot

@Bin Ye

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.