[ 
https://issues.apache.org/jira/browse/HADOOP-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated HADOOP-2190:
----------------------------------

    Attachment: Hadoop-2190_1.patch

this patch fixes the issue but only on the FsShell side.The previous patch fix 
it on the filesystem side which would requrioe changes to all the filesysstems. 
Also, this just checks to see if the directory/ does not exist only if it gets 
0 listings from listStatus. 

> dfs ls and lsr commands differ from POSIX standards
> ---------------------------------------------------
>
>                 Key: HADOOP-2190
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2190
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.1, 0.16.0
>            Reporter: Mukund Madhugiri
>         Attachments: HADOOP-2190-1.patch, HADOOP-2190-2.patch, 
> Hadoop-2190_1.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.

Reply via email to