How can anyone recover deleted HDFS data?

0 votes
I have a Hadoop cluster and by mistake, I have deleted a file from HDFS. So, I want to know whether the file which we delete from the HDFS is deleted permanently or is it kept somewhere else. Is it similar to Windows, where the file is stored in the recycle bin? And if it is, then how can I recover the data back in HDFS.
May 15, 2018 in Big Data Hadoop by code799
533 views

1 answer to this question.

0 votes

Yes, there is a trash policy in HDFS, where the file is stored in .Trash directory once they are deleted. But you have to check whether the trash policy is activated or not. Check whether the fs.trash.interval > 1.

If this property is set, then you can locate the file in .Trash directory. Generally you’ll find the directory in /user/username/.Trash

If you have not enabled the trash policy then you need to go ahead use data recovery tool, to recover the lost data.

answered May 15, 2018 by Shubham
• 13,110 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How can Hadoop discover missing or corrupt HDFS data?

HDFS supports fsck command to check for ...READ MORE

answered Jul 19, 2018 in Big Data Hadoop by nitinrawat895
• 9,990 points
87 views
0 votes
1 answer

How can I change data in HDFS?

You can not modified data once stored ...READ MORE

answered Feb 18 in Big Data Hadoop by Rishi
51 views
0 votes
1 answer

How can you transfer data from hive to HDFS ?

Hey, Data in Hive tables reside on HDFS, ...READ MORE

answered May 16 in Big Data Hadoop by Gitika
• 19,720 points
38 views
0 votes
1 answer

Can someone explain me how write data into HDFS using Java?

I understand your issue, I would drop ...READ MORE

answered Jun 4 in Big Data Hadoop by ravikiran
• 3,320 points
18 views
0 votes
1 answer

What does hadoop fs -du command gives as output?

The first value is the size of ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,110 points
624 views
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,110 points
117 views
0 votes
1 answer

How to find the used cache in HDFS

hdfs dfsadmin -report This command tells fs ...READ MORE

answered May 4, 2018 in Big Data Hadoop by Shubham
• 13,110 points
159 views
0 votes
1 answer

Where does HDFS stores data on the local file system?

First find the Hadoop directory present in ...READ MORE

answered May 8, 2018 in Big Data Hadoop by Shubham
• 13,110 points
717 views
0 votes
1 answer

How can I use my host machine’s web browser to check my HDFS services running in the VM?

The sole purpose of the virtual machine ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by Shubham
• 13,110 points
105 views
0 votes
1 answer

How can I write text in HDFS using CMD?

Hadoop put & appendToFile only reads standard ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,110 points
61 views