Support Questions
Find answers, ask questions, and share your expertise

Hbase backup

Solved Go to solution
Highlighted

Hbase backup

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

Accepted Solutions
Highlighted

Re: Hbase backup

Guru
6 REPLIES 6

Re: Hbase backup

Contributor

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.

Highlighted

Re: Hbase backup

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.

Highlighted

Re: Hbase backup

Super Collaborator

@Ashnee:

You can also use snapshot for table backup:

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

Highlighted

Re: Hbase backup

Yes snapshot is one of the option.

Highlighted

Re: Hbase backup

Highlighted

Re: Hbase backup

Guru