[
https://issues.apache.org/jira/browse/HADOOP-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
lohit vijayarenu updated HADOOP-2190:
-------------------------------------
Attachment: HADOOP-2190-2.patch
Another patch, which now calls listStatus instead of deprecated listPaths(Path)
. updated test case and changes suggested by Mukund.
> dfs ls and lsr commands differ from POSIX standards
> ---------------------------------------------------
>
> Key: HADOOP-2190
> URL: https://issues.apache.org/jira/browse/HADOOP-2190
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.15.1, 0.16.0
> Reporter: Mukund Madhugiri
> Fix For: 0.16.0
>
> Attachments: HADOOP-2190-1.patch, HADOOP-2190-2.patch
>
>
> Assuming the dfs commands follow POSIX standards, there are some problems
> with the DFS ls and lsr commands. I compared the DFS output with that of
> RHEL 4u5
> 1. ls a directory when there are no files/directories in that directory:
> Linux: No output
> DFS: Found 0 items
> 2. ls a file/directory that does not exist:
> Linux: ls: /doesnotexist: No such file or directory
> DFS: Found 0 items
> 3. lsr a directory that does not exist:
> Linux: ls: /doesnotexist: No such file or directory
> DFS: No output
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.