hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10385) The output of FsShell is sometimes confusing
Date Wed, 05 Mar 2014 19:34:53 GMT

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

Akira AJISAKA commented on HADOOP-10385:
----------------------------------------

I agree {{hdfs dfs -ls '/emptydir/\*'}} prints nothing if there are no files or directories
in {{/emptydir}}. However, now {{hdfs dfs -ls '/test/\*'}} prints nothing if there are some
empty directories in {{/test}}.
I suppose it's better to print the directory name like unix shell as follows:
{code}
$ hdfs dfs -ls '/test/*'
/test/1 : 0 results found
/test/2 : 0 results found
{code}
or 
{code}
$ hdfs dfs -ls '/test/*'
/test/1 :
/test/2 :
{code}

> The output of FsShell is sometimes confusing
> --------------------------------------------
>
>                 Key: HADOOP-10385
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10385
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.3.0
>            Reporter: Akira AJISAKA
>            Priority: Minor
>
> For example, directories {{/test/1}} and {{/test/2}} are listed by {{hdfs dfs -ls '/test*'}}
but are not listed by {{hdfs dfs -ls '/test/*'}}. This behavior looks confusing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message