[
https://issues.apache.org/jira/browse/HADOOP-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16718244#comment-16718244
]
Wei-Chiu Chuang commented on HADOOP-15982:
------------------------------------------
Hey [~eepayne] thanks for chiming in. Yes the initial proposal on HADOOP-7310
is basically what's proposed in this jira.
However, it was never implemented. Let's get it implemented, shall we?
Quoting HADOOP-7310:
{quote}I propose two solutions:
A. Put trash in /Trash/<userName>; generally no quotas will be configured for
/Trash since it is cleaned up periodically. This addresses all the three issues
raised above. This solution however breaks compatibility. Note Trash applies
ONLY to rm's performed via the shell's -rm command.
B. The trash location is configured as SS configuration variable.
I prefer solution A, since it is one less configuration variable. Do folks see
real compatibility problem here?
{quote}
And it appears the community likes A, too.
> Support configurable trash location
> -----------------------------------
>
> Key: HADOOP-15982
> URL: https://issues.apache.org/jira/browse/HADOOP-15982
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Affects Versions: 3.0.0
> Reporter: George Huang
> Assignee: George Huang
> Priority: Minor
>
> Currently some customer has users accounts that are functional ids (fid) to
> manage application and application data under the path /data/FID. These fid's
> also get a home directory under /user path. The user's home directories are
> limited with space quota 60 G. When these fids delete data, due to customer
> deletion policy they are placed in /user/<FID>/.Trash location and run over
> quota.
> For now they are increasing quotas for these functional users, but
> considering growing applications they would like the .Trash location to be
> configurable or something like /trash/\{userid} that is owned by the user.
> What should the configurable path look like to make this happen? For example,
> some thoughts may relate whether we want to configure it for per user or per
> cluster, etc.
> Here is current behavior:
> fs.TrashPolicyDefault: Moved: 'hdfs://ns1/user/hdfs/test/1.txt to trash at:
> hdfs://ns1/user/hdfs/.Trash/Current/user/hdfs/test/1.txt
> for path under encryption zone:
> fs.TrashPolicyDefault: Moved: 'hdfs://ns1/scale/2.txt' to trash at
> hdfs://ns1/scale/.Trash/hdfs/Current/scale/2.txt
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]