Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10369

hadoop fs -ls prints "Found 1 items" for each entry when globbing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.3.0
    • None
    • None
    • None

    Description

      -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
      

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

      -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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chrilisf Chris Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: