How to create backup of individual M7 table?

Document created by prasoon Employee on Feb 8, 2016
Version 1Show Document
  • View in full screen mode

Author: Prasoon Keloth

 

Original Publication Date: October 27, 2014

 

Issue:

How to create backup of individual M7 table and restore it?

 

Solution:

To  backup and restore individual tables, we can use hbase export/import.

 

Steps:

1.  To take backup of table /M7/Table1 to directory /Backup/Table1

 

hbase org.apache.hadoop.hbase.mapreduce.Export /M7/Table1 /Backup/Table1

 

2. To restore, create a table with same schema and import.

 

hbase(main):001:0> create '/M7/ImportTable1', 'cf' 
hbase org.apache.hadoop.hbase.mapreduce.Import /M7/ImportTable1 /Backup/Table1

 

Reference:

 

http://hbase.apache.org/book/ops_mgt.html#export

Attachments

    Outcomes