hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Binglin Chang <decst...@gmail.com>
Subject Re: HDFS snapshots restore
Date Thu, 28 Nov 2013 15:27:01 GMT
snapshot restore feature is not implemented yet. Currently you can use
distcp to copy snapshot dir to your new cluster, suppose your hive dir is
/user/hive/, snapshot dir is /user/hive/.snapshot/sn0, you can:
 distcp hfds://oldcluster:8020/user/hive/.snapshot/sn0

On Thu, Nov 28, 2013 at 9:47 PM, Juan Martin Pampliega <jpampliega@gmail.com
> wrote:

> Hi,
> I have read the documentation about HDFS snapshots for hadoop 2 (
> http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html)
> but it is still not clear how do I use this snapshots to restore the data.
> Lets say I have a directory with the data corresponding to a Hive table
> that I want to backup. I take a snapshot today and tomorrow I find out that
> the modifications done to the table/directory after the snapshot are wrong
> and I want to revert the directory to the snapshot state. How do I achieve
> this?
> Also, can I extract the snapshot from HDFS and save it in an external
> storage and later use it to restore this directory in a new empty cluster?
> or which is the recommended way to do this?
> Thanks,
> Juan.

View raw message