You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2006/08/09 00:39:17 UTC
[jira] Commented: (HADOOP-431) default behaviour of dfsShell -rm
should resemble 'rm -i', not 'rm -rf'
[ http://issues.apache.org/jira/browse/HADOOP-431?page=comments#action_12426760 ]
Owen O'Malley commented on HADOOP-431:
--------------------------------------
-1 on making -i the default. (*smile* "-1" even looks like "-i")
Part of the problem with even making the unix default the default is that in Hadoop, every logical file is modelled as a directory with a bunch of files in it (eg. my-data/part-* ). I'd suggest that the default should be willing to delete a first-level directory, but not a second-level or higher directory. (I'm defining a first-level directory to mean a directory with no sub-directories.)
> 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