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

Stephen O'Donnell commented on HADOOP-17639:
--------------------------------------------

The trash interval is used to purge the trash automatically by the NN, so it 
cannot go away.

If someone needs to remember to pass "-useTrash", then someday they will forget 
and you will be no further forward than if they accidentally passed -skipTrash.

If your goal is to prevent accidental data loss, then none of these things make 
up for no backups. HDFS may have replication factor 3, but you still need a 
backup somewhere else if you really care about your data.

We already have snapshots, protected directories and trash. Aside from banning 
deletes completely, there are only so many things we can do to prevent user 
error losing data.



> Restrict the "-skipTrash" param for accidentally deletes data
> -------------------------------------------------------------
>
>                 Key: HADOOP-17639
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17639
>             Project: Hadoop Common
>          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]

Reply via email to