When and where, HDFS
creates the .Trash
folder ?
Does there any rule or logic, any reference ?
Every HDFS user has their own .Trash
folder on HDFS within hdfs:///user/<name>
. The folder existance is checked and then created whenever hadoop fs -rm
command gets executed by that user without a -skipTrash
option.
This is purged on a schedule as per values of core-site.xml
By default, both are zero, so it is disabled and deleted files will therefore always be recoverable until manually cleared out by an HDFS administrator.
Also see this IBM post on HDFS Trash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With