1.

Mistakenly User Deleted A File, How Hadoop Remote From Its File System? Can U Roll Back It?

Answer»

HDFS first renames its file NAME and place it in /trash directory for a configurable amount of TIME. In this scenario block might freed, but not file. After this time, Namenode deletes the file from HDFS name-space and MAKE file freed. It’s configurable as fs.trash.interval in core-site.xml. By default its VALUE is 1, you can set to 0 to delete file without storing in trash.

HDFS first renames its file name and place it in /trash directory for a configurable amount of time. In this scenario block might freed, but not file. After this time, Namenode deletes the file from HDFS name-space and make file freed. It’s configurable as fs.trash.interval in core-site.xml. By default its value is 1, you can set to 0 to delete file without storing in trash.



Discussion

No Comment Found