How to backup and disaster recovery in hbase | Hadoop

Find Details

 

Performance Impact

Data Footprint

Downtime

Incremental Backups

Ease of Implementation

Mean Time To Recovery (MTTR)

Snapshots

Minimal

Tiny

Brief (Only on Restore)

No

Easy

Seconds

Replication

Minimal

Large

None

Intrinsic

Medium

Seconds

Export

High

Large

None

Yes

Easy

High

CopyTable

High

Large

None

Yes

Easy

High

API

Medium

Large

None

Yes

Difficult

Up to you

Manual

N/A

Large

Long

No

Medium

High

Snapshots

Creating a snapshot of a table is as simple as running this command from the HBase shell:
               
hbase(main):001:0>  snapshot 'exampleTable', 'exampleSnapShot'
                
               
Restore snapshot
               
hbase(main):002:0>  disable 'exampleTable'
hbase(main):003:0>  restore_snapshot 'exampleSnapShot'
hbase(main):004:0>  enable 'exampleTable'
                
               

Export

               
hbase org.apache.hadoop.hbase.mapreduce.Export exampleTable /user/xyz/
                
               

CopyTable

               
hbase org.apache.hadoop.hbase.mapreduce.CopyTable --new.name=exampleTableCopy exampleTable