You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by sa...@hotmail.com on 2010/03/02 13:43:54 UTC
How to back up HBase data
Hi, everyone. Recently I encountered a problem about data loss of HBase. So it comes to the question that how to back up HBase data to recover table records if HBase or HDFS crash. What about copy the directory of HBase to another directory in HDFS? Could someone mind giving me some advice? Thanks a lot!
Best Wishes!
_____________________________________________________________
刘祥龙 Liu Xianglong
RE: How to back up HBase data
Posted by Jonathan Gray <jl...@streamy.com>.
You can either do exports at the HBase API level (a la Export class), or you
can force flush all your tables and do an HDFS level copy of the /hbase
directory (using distcp for example).
-----Original Message-----
From: Ted Yu [mailto:yuzhihong@gmail.com]
Sent: Tuesday, March 02, 2010 4:49 AM
To: hbase-user@hadoop.apache.org
Subject: Re: How to back up HBase data
You can use Export class.
Please take a look at hbase-2225 as well.
On Tuesday, March 2, 2010, <sa...@hotmail.com> wrote:
> Hi, everyone. Recently I encountered a problem about data loss of HBase.
So it comes to the question that how to back up HBase data to recover table
records if HBase or HDFS crash. What about copy the directory of HBase to
another directory in HDFS? Could someone mind giving me some advice? Thanks
a lot!
>
> Best Wishes!
> _____________________________________________________________
>
> 刘祥龙 Liu Xianglong
Re: How to back up HBase data
Posted by Ted Yu <yu...@gmail.com>.
You can use Export class.
Please take a look at hbase-2225 as well.
On Tuesday, March 2, 2010, <sa...@hotmail.com> wrote:
> Hi, everyone. Recently I encountered a problem about data loss of HBase. So it comes to the question that how to back up HBase data to recover table records if HBase or HDFS crash. What about copy the directory of HBase to another directory in HDFS? Could someone mind giving me some advice? Thanks a lot!
>
> Best Wishes!
> _____________________________________________________________
>
> 刘祥龙 Liu Xianglong