hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Dechoux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8791) rm "Only deletes non empty directory and files."
Date Fri, 14 Sep 2012 07:51:08 GMT

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

Bertrand Dechoux commented on HADOOP-8791:

I made the same test on the 1.0.3 version and I can confirm that directories can not be delete,
being empty or not has no influence...

@Hemanth : so yes, the documentation should be updated to say only files.

Can someone check for previous versions? Is that a regression? Or a documentation that was
never correct? If that's a regression, should it be corrected now that's the 1.0.3 (and I
guess the 1.0) behaviour? 

I also tested on 1.0.3 whether size of files has an impact but it doesn't.

Second question : if the observed behaviour is the 'correct' one, it would really beg for
a 'rmdir' equivalent command for HDFS.
> rm "Only deletes non empty directory and files."
> ------------------------------------------------
>                 Key: HADOOP-8791
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8791
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 1.0.3, 3.0.0
>            Reporter: Bertrand Dechoux
>            Assignee: Jing Zhao
>              Labels: documentation
>         Attachments: HADOOP-8791-branch-1.patch, HADOOP-8791-trunk.patch
> The documentation (1.0.3) is describing the opposite of what rm does.
> It should be  "Only delete files and empty directories."
> With regards to file, the size of the file should not matter, should it?
> OR I am totally misunderstanding the semantic of this command and I am not the only one.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message