[
https://issues.apache.org/jira/browse/HDFS-4167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989241#comment-13989241
]
Tsz Wo Nicholas Sze commented on HDFS-4167:
-------------------------------------------
> Suppose a (closed) file foo has size 100MB and a snapshot s0 is taken. Then
> foo is appended to 110MB. ..
For restoring foo, we could recreate the file by reusing the first n-1 blocks
and copy the last block with the original length. For restoring a large
directory, we may need a MapReduce job to do the copying like HAR or DistCp.
> Add support for restoring/rolling back to a snapshot
> ----------------------------------------------------
>
> Key: HDFS-4167
> URL: https://issues.apache.org/jira/browse/HDFS-4167
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Suresh Srinivas
> Assignee: Jing Zhao
> Attachments: HDFS-4167.000.patch, HDFS-4167.001.patch,
> HDFS-4167.002.patch, HDFS-4167.003.patch
>
>
> This jira tracks work related to restoring a directory/file to a snapshot.
--
This message was sent by Atlassian JIRA
(v6.2#6252)