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

FsShell can print "Found xxx items" unnecessarily often

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.3, 2.0.0-alpha
    • 2.4.0
    • fs
    • None
    • Incompatible change, Reviewed
    • The `ls` command only prints "Found foo items" once when listing the directories recursively.

    Description

      The "Found xxx items" header that is printed with a file listing will often appear multiple times in not-so-helpful ways in light of globbing. For example:

      $ hadoop fs -ls 'teradata/*'  
      Found 1 items
      -rw-r--r--   1 someuser somegroup          0 2012-08-06 16:55 teradata/_SUCCESS
      Found 1 items
      -rw-r--r--   1 someuser somegroup       5000 2012-08-06 16:55 teradata/part-m-00000
      Found 1 items
      -rw-r--r--   1 someuser somegroup       5000 2012-08-06 16:55 teradata/part-m-00001
      

      Seems like it should just print "Found 3 items" once at the top, or maybe not even print a header at all.

      Attachments

        1. HADOOP-8691.txt
          0.7 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: