hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Li (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-10369) hadoop fs -ls prints "Found 1 items" for each entry when globbing
Date Wed, 26 Feb 2014 01:41:19 GMT
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)

Mime
View raw message