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

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

[~vjasani] fs.trash.interval config is not solving the problem directly. The 
problem is that if a user makes some mistake in the configuration (as I did, 
unfortunately), a command to remove data on HDFS can mistakenly remove 
everything in the user’s home folder on disk. Ideally, this behavior should be 
prevented no matter whether fs.trash.interval config is set or not. Please let 
me know if there’s anything I could help with.

> 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 `hdfs dfs -rm -r /` and it deleted everything on my local system. I 
> deleted all the files which I have access to under / 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