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

FsShell can print "Found xxx items" unnecessarily often

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment