[
https://issues.apache.org/jira/browse/HADOOP-10385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921267#comment-13921267
]
Jason Lowe commented on HADOOP-10385:
-------------------------------------
Agree it's probably a case of empty directories but not one where the globber
fails to find anything. I'm guessing the globber found two results but those
results were themselves empty directories. For example:
{noformat}
$ hadoop fs -mkdir -p /test/1 /test/2
$ hadoop fs -ls /test
Found 2 items
drwx------ - user group 0 2014-03-05 19:24 /test/1
drwx------ - user group 0 2014-03-05 19:24 /test/2
$ hadoop fs -ls '/test/*'
$ hadoop fs -ls -d '/test/*'
drwx------ - user group 0 2014-03-05 19:24 /test/1
drwx------ - user group 0 2014-03-05 19:24 /test/2
{noformat}
> 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)