You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Chris Li (JIRA)" <ji...@apache.org> on 2014/02/26 02:41:19 UTC

[jira] [Created] (HADOOP-10369) hadoop fs -ls prints "Found 1 items" for each entry when globbing

Chris Li created HADOOP-10369:
---------------------------------

             Summary: hadoop fs -ls prints "Found 1 items" for each entry when globbing
                 Key: HADOOP-10369
                 URL: https://issues.apache.org/jira/browse/HADOOP-10369
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 2.3.0
            Reporter: Chris Li
            Priority: Minor


{noformat}
-sh-4.1$ hadoop fs -ls /user/chrili/books/84*
Found 1 items
-rw-r--r--   3 chrili gid-chrili     142382 2014-02-25 18:30 /user/chrili/books/844.other
Found 1 items
-rwxr-xr-x   3 chrili gid-chrili     142382 2013-09-24 10:47 /user/chrili/books/844.txt.utf-8
{noformat}

This behavior is new to 2.0. In 1.X it would not print this at all:

{noformat}
-sh-4.1$ hadoop fs -ls /user/chrili/books/84*
-rw-r--r--   3 chrili gid-chrili     142382 2014-02-25 18:30 /user/chrili/books/844.other
-rwxr-xr-x   3 chrili gid-chrili     142382 2013-09-24 10:47 /user/chrili/books/844.txt.utf-8
{noformat}

We can workaround this today by filtering with grep first, but I don't think this is the sort of thing that should be printed to stdout in the first place. Seems like it would be more appropriate to output to stderr.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)