When and where, HDFS
creates the .Trash
folder ?
Does there any rule or logic, any reference ?
When and where, HDFS
creates the .Trash
folder ?
Does there any rule or logic, any reference ?
The HDFS
.Trash
folder appears after a delete operation (whitout skipping trash) in :
For each hdfs user under his home folder:
/user/<user-name>/.Trash
For each encryption zone under it's root:
/crypto/zone/root/.Trash
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
/user/<name>
, i can find .Trash
under other locations ! –
Humiliating The HDFS
.Trash
folder appears after a delete operation (whitout skipping trash) in :
For each hdfs user under his home folder:
/user/<user-name>/.Trash
For each encryption zone under it's root:
/crypto/zone/root/.Trash
© 2022 - 2024 — McMap. All rights reserved.