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
1,114 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,290 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
• 10,670 points
127 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
78 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
• 25,340 points
70 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
• 4,560 points
37 views
+1 vote
2 answers

What does hadoop fs -du command gives as output?

du command is used for to see ...READ MORE

answered Jul 23 in Big Data Hadoop by Lokesh Singh
879 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,290 points
178 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,290 points
215 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,290 points
1,290 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,290 points
132 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,290 points
78 views