You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by varun kumar <va...@gmail.com> on 2012/04/26 14:15:10 UTC

HDFS Files Deleted

Dear All,

By Mistake i have deleted file in from HDFS using the command:

hadoop dfs -rmr /*

Is there any way to retrieve the deleted data.

-- 
Regards,
Varun Kumar.P

Re: HDFS Files Deleted

Posted by Patrick Angeles <pa...@gmail.com>.
It might be too late now since this is several hours ago, but you might
have been able to recover some of it by shutting down the DNs, and
restoring a previous fsimage (you *are* checkpointing, aren't you?).


On Thu, Apr 26, 2012 at 4:22 PM, M. C. Srivas <mc...@gmail.com> wrote:

> Do you have snapshots?  Or other forms of backup?  Otherwise you are
> basically out of luck.
>
>
> On Thu, Apr 26, 2012 at 11:00 AM, varun kumar <va...@gmail.com> wrote:
>
>> Thanks for your quick reply john.
>>
>> I have't configured  *fs.trash.interval* in my core-site.xml,after this
>> disaster i have configured,Is there any other option to retrieve the data
>> back.
>>
>> Regards,
>> Varun Kumar.P
>>
>> On Thu, Apr 26, 2012 at 7:19 PM, John George <jo...@yahoo-inc.com>wrote:
>>
>>> If you did not use –skipTrash, the file should be in your trash. Refer:
>>> http://hadoop.apache.org/common/docs/current/hdfs_design.html#File+Deletes+and+Undeletes for
>>> more information.
>>>
>>> From: varun kumar <va...@gmail.com>
>>> Reply-To: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
>>> Date: Thu, 26 Apr 2012 05:15:10 -0700
>>> To: "common-user@hadoop.apache.org" <co...@hadoop.apache.org>
>>> Cc: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
>>> Subject: HDFS Files Deleted
>>>
>>> Dear All,
>>>
>>> By Mistake i have deleted file in from HDFS using the command:
>>>
>>> hadoop dfs -rmr /*
>>>
>>> Is there any way to retrieve the deleted data.
>>>
>>> --
>>> Regards,
>>> Varun Kumar.P
>>>
>>>
>>
>>
>> --
>> Regards,
>> Varun Kumar.P
>>
>>
>

Re: HDFS Files Deleted

Posted by "M. C. Srivas" <mc...@gmail.com>.
Do you have snapshots?  Or other forms of backup?  Otherwise you are
basically out of luck.

On Thu, Apr 26, 2012 at 11:00 AM, varun kumar <va...@gmail.com> wrote:

> Thanks for your quick reply john.
>
> I have't configured  *fs.trash.interval* in my core-site.xml,after this
> disaster i have configured,Is there any other option to retrieve the data
> back.
>
> Regards,
> Varun Kumar.P
>
> On Thu, Apr 26, 2012 at 7:19 PM, John George <jo...@yahoo-inc.com>wrote:
>
>> If you did not use –skipTrash, the file should be in your trash. Refer:
>> http://hadoop.apache.org/common/docs/current/hdfs_design.html#File+Deletes+and+Undeletes for
>> more information.
>>
>> From: varun kumar <va...@gmail.com>
>> Reply-To: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
>> Date: Thu, 26 Apr 2012 05:15:10 -0700
>> To: "common-user@hadoop.apache.org" <co...@hadoop.apache.org>
>> Cc: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
>> Subject: HDFS Files Deleted
>>
>> Dear All,
>>
>> By Mistake i have deleted file in from HDFS using the command:
>>
>> hadoop dfs -rmr /*
>>
>> Is there any way to retrieve the deleted data.
>>
>> --
>> Regards,
>> Varun Kumar.P
>>
>>
>
>
> --
> Regards,
> Varun Kumar.P
>
>

Re: HDFS Files Deleted

Posted by varun kumar <va...@gmail.com>.
Thanks for your quick reply john.

I have't configured  *fs.trash.interval* in my core-site.xml,after this
disaster i have configured,Is there any other option to retrieve the data
back.

Regards,
Varun Kumar.P

On Thu, Apr 26, 2012 at 7:19 PM, John George <jo...@yahoo-inc.com> wrote:

> If you did not use –skipTrash, the file should be in your trash. Refer:
> http://hadoop.apache.org/common/docs/current/hdfs_design.html#File+Deletes+and+Undeletes for
> more information.
>
> From: varun kumar <va...@gmail.com>
> Reply-To: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
> Date: Thu, 26 Apr 2012 05:15:10 -0700
> To: "common-user@hadoop.apache.org" <co...@hadoop.apache.org>
> Cc: "hdfs-user@hadoop.apache.org" <hd...@hadoop.apache.org>
> Subject: HDFS Files Deleted
>
> Dear All,
>
> By Mistake i have deleted file in from HDFS using the command:
>
> hadoop dfs -rmr /*
>
> Is there any way to retrieve the deleted data.
>
> --
> Regards,
> Varun Kumar.P
>
>


-- 
Regards,
Varun Kumar.P

Re: HDFS Files Deleted

Posted by John George <jo...@yahoo-inc.com>.
If you did not use –skipTrash, the file should be in your trash. Refer: http://hadoop.apache.org/common/docs/current/hdfs_design.html#File+Deletes+and+Undeletes for more information.

From: varun kumar <va...@gmail.com>>
Reply-To: "hdfs-user@hadoop.apache.org<ma...@hadoop.apache.org>" <hd...@hadoop.apache.org>>
Date: Thu, 26 Apr 2012 05:15:10 -0700
To: "common-user@hadoop.apache.org<ma...@hadoop.apache.org>" <co...@hadoop.apache.org>>
Cc: "hdfs-user@hadoop.apache.org<ma...@hadoop.apache.org>" <hd...@hadoop.apache.org>>
Subject: HDFS Files Deleted

Dear All,

By Mistake i have deleted file in from HDFS using the command:

hadoop dfs -rmr /*

Is there any way to retrieve the deleted data.

--
Regards,
Varun Kumar.P