hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eric baldeschwieler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-431) default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf'
Date Wed, 09 Aug 2006 22:46:14 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-431?page=comments#action_12427048 ] 
eric baldeschwieler commented on HADOOP-431:

I'd support a -r command to remove a directory.  A lot of user commands may not be on reduce
directories, so I don't think it is true that EVERY logical file is a subdirectory.

That said, I also like the idea of differentiating between removing one directory and removing
lots of them.  What about requiring -rr if you really mean to do a deep recursive delete?

-i seems like overkill to me.

> default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf'
> -----------------------------------------------------------------------
>                 Key: HADOOP-431
>                 URL: http://issues.apache.org/jira/browse/HADOOP-431
>             Project: Hadoop
>          Issue Type: Improvement
>            Reporter: Yoram Arnon
> when using hadoop dfs -rm <path> the behaviour is like that of rm -rf.
> That's very dangerous.
> A better behaviour would require a confirmation and allow removal of files only by default.
Optional flags would allow recursive and forced deleted.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message