Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
-
Description
Currently, hadoop FileSystem API has getTrashRoot to determine trash directory at run time. Default trash dir is under /user/$USER
For an encrypted file, since moving files between/in/out of EZs are not allowed, when an EZ file is deleted via CLI, it calls in to DFS implementation to move the file to a trash directory under the same EZ.
This works perfectly fine for CLI users or java users who call FileSystem API. But for users via httpfs/webhdfs, currently there is no way to figure out what the trash root would be. This jira is proposing we add such interface to httpfs and webhdfs.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-15181 Webhdfs getTrashRoot() causes internal AccessControlException
- Resolved
- is related to
-
HDFS-10883 `getTrashRoot`'s behavior is not consistent in DFS after enabling EZ.
- Resolved
- relates to
-
HDFS-15052 WebHDFS getTrashRoot leads to OOM due to FileSystem object creation
- Resolved