[
https://issues.apache.org/jira/browse/HADOOP-10385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921447#comment-13921447
]
Daryn Sharp commented on HADOOP-10385:
--------------------------------------
Akira can clarify, but I think he may be referring to something different than
how many results are found.
In the example, {{-ls '/test*'}} after expansion is {{-ls /test}} which shows
the contents of "/test", namely the subdirs "1" and "2". {{-ls '/test/*'}} is
equivalent to {{-ls '/test/1' '/test/2'}} which now lists the contents of each
subdir. In this case those subdirs are empty and nothing is printed. Ignoring
the how many items found line, this is correct behavior.
> 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)