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

Yayu Wang commented on HDFS-16360:
----------------------------------

[~vjasani] Thanks for your reply. I have not explored that. I just download the 
binary and add nothing to the configuration files.

Does [fs.trash.interval 
config|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml#L921-L932]
 matter? It looks like a protection for the hdfs data, while the rm command 
just deletes the files on disk.

> Adding confirm prompt when removing root directory on local filesystem
> ----------------------------------------------------------------------
>
>                 Key: HDFS-16360
>                 URL: https://issues.apache.org/jira/browse/HDFS-16360
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Yayu Wang
>            Priority: Major
>
> Would you like to add a confirm prompt when removing the root directory, 
> especially when using local filesystem? I forgot to set fs.defaultFS and 
> executed `rm -r /*` and it deleted everything on my local system. I lost 
> everything under my $HOME directory, and I think a sudo user may destroy the 
> host by doing so.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to