Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15620 Über-jira: S3A phase VI: Hadoop 3.3 features
  3. HADOOP-16468

S3AFileSystem.getContentSummary() to use listFiles(recursive)

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: fs, fs/s3
    • Labels:
      None

      Description

      HIVE-22054 discusses how they use getContentSummary to see if a directory is empty.

      This is implemented in FileSystem as a recursive treewalk, with all the costs there.

      Hive is moving off it; once that is in it won't be so much of an issue. But if we wanted to speed up older versions of Hive, we could move the operation to using a flat list

      That would give us the file size rapidly; the directory count would have to be worked out by tracking parent dirs of all paths (and all entries ending with /), and adding them up

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: