[
https://issues.apache.org/jira/browse/HADOOP-8791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463114#comment-13463114
]
Bertrand Dechoux commented on HADOOP-8791:
------------------------------------------
I have to confess that I am a bit lost.
* currently (1.0.3) the rm delete only files (no directory, empty or not)
* a rmdir command has been added to the trunk(cool)
* rmr is still around in the trunk but a -r option was added to rm
What is the difference between rmr and rm -r, then? And if there is such an
option, I assume that the rm command will once again delete directories? It
should be carefully documented.
@Jing : You should add the -r option in the command description too for the
trunk.
=> dfs -rm [-r] [-skipTrash]
> 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.001.patch,
> HADOOP-8791-branch-1.patch, HADOOP-8791-branch-1.patch,
> HADOOP-8791-trunk.001.patch, HADOOP-8791-trunk.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