[ 
https://issues.apache.org/jira/browse/HDFS-16028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347406#comment-17347406
 ] 

Qi Zhu edited comment on HDFS-16028 at 5/19/21, 8:24 AM:
---------------------------------------------------------

Thanks [~zhengzhuobinzzb] for patch.

1. We'd better add an enable flag to trigger this besides null check.

2. We should also add the new conf in core-default.xml. 

3. We should add some doc for getTrashHome method consistent with 
getHomeDirectory.

cc [~hexiaoqiao] [~ayushtkn]   [~weichiu]  [~sodonnell] 

Could you help review this when you are free?

 


was (Author: zhuqi):
Thanks [~zhengzhuobinzzb] for patch.

We should also add the new conf in core-default.xml.  And we should add some 
doc for getTrashHome method consistent with getHomeDirectory.

cc [~hexiaoqiao] [~ayushtkn]   [~weichiu]  [~sodonnell] 

Could you help review this when you are free?

 

> Add a configuration item for special trash dir
> ----------------------------------------------
>
>                 Key: HDFS-16028
>                 URL: https://issues.apache.org/jira/browse/HDFS-16028
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: zhuobin zheng
>            Assignee: zhuobin zheng
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HDFS-16028.001.patch, HDFS-16028.002.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In some situation, We don't want to put trash in homedir. like:
>  # Immediately reduce the quota occupation of the home directory
>  # In RBF:  We want to make the directory mounting strategy of trash 
> different from the home directory and we don't want mount it per user
> This patch add the option "fs.trash.dir" to special the trash dir( 
> ${fs.trash.dir}/$USER/.Trash)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to