hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-431) default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf'
Date Tue, 08 Aug 2006 22:39:17 GMT
    [ 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

        

Mime
View raw message