Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8545

Refactor FS#getUsed() to use ContentSummary and add an API to fetch the total file length from a specific path

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      Currently by default in FileSystem#getUsed() returns the total file size from root.
      It is good to have an api to return the total file size from specified path ,same as we specify the path in "./hdfs dfs -du -s /path" .

      Attachments

        1. HDFS-8545.1.patch
          3 kB
          J.Andreina
        2. HDFS-8545.2.patch
          3 kB
          J.Andreina
        3. HDFS-8545.3.patch
          4 kB
          J.Andreina
        4. HDFS-8545.4.patch
          4 kB
          J.Andreina
        5. HDFS-8545.5.patch
          5 kB
          J.Andreina
        6. HDFS-8545.6.patch
          5 kB
          J.Andreina
        7. HDFS-8545.7.patch
          5 kB
          J.Andreina

        Issue Links

        Activity

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

          People

            andreina J.Andreina
            andreina J.Andreina
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment