Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hbase backup

avatar

I have one query. Is there any command to take backup off all table at a time or I have to take a backup of table one by one. If yes then please elaborate,

Thanks in advance for help.

1 ACCEPTED SOLUTION

avatar
Guru
6 REPLIES 6

avatar
Rising Star

Hi @Ashnee Sharma, I don't think there is a simple command to backup all tables at a time. To backup the whole hbase cluster, you need to shutdown it first and use distcp tool to backup all hbase data on HDFS.

To backup single table, you could use Replication, CopyTable or Export. You can find the details here: http://hbase.apache.org/book.html#ops.backup

My suggestion is that you can write a small script to backup all the tables one by one in a live cluster.

avatar

Ok thanks, I have single node cluster and I want to reformat the cluster thats why I am looking for sigle command which will help me to take a backup of all hbase table at a time.

avatar
Master Collaborator

@Ashnee:

You can also use snapshot for table backup:

http://hbase.apache.org/book.html#ops.snapshots

avatar

Yes snapshot is one of the option.

avatar
Guru

The best summary of the backup status and what is coming in HDP-2.5 is here:

https://hortonworks.com/blog/coming-hdp-2-5-incremental-backup-restore-apache-hbase-apache-phoenix/