[ https://issues.apache.org/jira/browse/HADOOP-12358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14717842#comment-14717842 ]
Arpit Agarwal commented on HADOOP-12358: ---------------------------------------- bq. If automation really wants to delete that many blocks, then what? How does it override if the only option to do so forces a prompt? The administrator should consider this potential breakage before enabling it. We should make it explicit in the documentation. bq. We could add "-y, --yes, or --assume-yes" to automatic yes to prompts so that delete run non-interactively. We have seen some administrators routinely pass {{–skipTrash}} which leads to these situations. IMO if we add {{--yes}} or similar they will just start including that as well. > 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)