hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brahma Reddy Battula <brahmareddy.batt...@huawei.com>
Subject RE: How to restore data from HDFS rm -skipTrash
Date Wed, 09 Aug 2017 08:50:30 GMT
You can refer the following link also.

https://community.hortonworks.com/articles/26181/how-to-recover-accidentally-deleted-file-in-hdfs.html


--Brahma Reddy Battula

-----Original Message-----
From: Konstantin Shvachko [mailto:shv.hadoop@gmail.com] 
Sent: 05 August 2017 02:30
To: panfei
Cc: hdfs-dev@hadoop.apache.org
Subject: Re: How to restore data from HDFS rm -skipTrash

If you stopped the cluster immediately you may have a chance to restore most of the data.
It's a manual and hacky process.
You can use the Offline Edits Viewer to see the latest edits and cut off the delete transactions
that was issues by mistake.
Then you can restart the namenode with the modifies edits log.
Hope this helps.

Thanks,
--Konstantin

On Thu, Aug 3, 2017 at 8:38 PM, panfei <cnweike@gmail.com> wrote:

> ---------- Forwarded message ----------
> From: panfei <cnweike@gmail.com>
> Date: 2017-08-04 11:23 GMT+08:00
> Subject: How to restore data from HDFS rm -skipTrash
> To: CDH Users <cdh-user@cloudera.org>
>
>
> some one mistakenly do a rm -skipTrash operation on the HDFS, but we 
> stop the namenode and datanodes immediately. (CDH 5.4.5)
>
> I want to know is there any way to stop the deletion process ?
>
> and how ?
>
> thanks very in advance.
>
Mime
View raw message