[
https://issues.apache.org/jira/browse/HDFS-15986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322734#comment-17322734
]
Steve Loughran commented on HDFS-15986:
---------------------------------------
well, I can see what you've just done :)
I think changes to the CLI is going to be trouble as there's some guarantees of
consistency over time, with command line, behaviour and of output.
hadoop fs -rm -skipTrash is used in scripts, so we can't suddenly say "this
will be prompted". And if we add an override "-f" then people will just get
into the habit of going "hadoop fs -rm -R -f -skipTrash" the way "rm -rf" is my
standard rm string on the command line.
> Restrict the "-skipTrash" param for accidentally deletes data
> -------------------------------------------------------------
>
> Key: HDFS-15986
> URL: https://issues.apache.org/jira/browse/HDFS-15986
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Bhavik Patel
> Priority: Major
>
> Suppose the user tries to delete the data from CLI with the "-skipTrash"
> param but by mistake, he deleted a couple of directories but actually, that
> directory user want to retain then their is no way to retrieve the delete
> data.
> It will be good to have a confirm message like: "Skip the trash for the
> hdfs:///dri1/file.txt files? (Y or N)" ro we can completely disable the
> "-skipTrash" param.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]