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

Xiaoyu Yao commented on HADOOP-12358:
-------------------------------------

Thanks [~aw] for the suggestions to improve the usability and compatibility of 
this feature.

bq. This limitation is tied to a flag on the rm command. Then we can write some 
shell code to utilize .hadooprc to build subcommand aliasing. (.e.g., alias 
"hadoop fs -rm"="hadoop fs -rm -safely" or whatever.) Just be aware that this 
will only work in trunk.

I like this idea as it offers something close to GNU "rm -i", which is usually 
aliased as "rm" in .bashrc for data safety. 

> FSShell should prompt before deleting directories bigger than a configured 
> size
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-12358
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12358
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>         Attachments: HADOOP-12358.00.patch, HADOOP-12358.01.patch, 
> HADOOP-12358.02.patch, HADOOP-12358.03.patch
>
>
> We have seen many cases with customers deleting data inadvertently with 
> -skipTrash. The FSShell should prompt user if the size of the data or the 
> number of files being deleted is bigger than a threshold even though 
> -skipTrash is being used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to