[ http://issues.apache.org/jira/browse/HADOOP-431?page=all ]
Sameer Paranjpye updated HADOOP-431:
------------------------------------
Status: Patch Available (was: In Progress)
Fix Version/s: 0.7.0
Affects Version/s: 0.6.2
(was: 0.5.0)
This patch changes the behavior of 'dfs -rm' and makes it behave like UNIX
'rm'. 'dfs -rm' no longer removes directories. It also adds a new command 'dfs
-rmr' which recursively removes directories. Both 'dfs -rm' and 'dfs -rmr' will
remove files.
> 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
> Components: dfs
> Affects Versions: 0.6.2
> Reporter: Yoram Arnon
> Assigned To: Sameer Paranjpye
> Fix For: 0.7.0
>
> Attachments: rmr.patch.txt
>
>
> 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