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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.7.patch
          5 kB
          J.Andreina
        2. HDFS-8545.6.patch
          5 kB
          J.Andreina
        3. HDFS-8545.5.patch
          5 kB
          J.Andreina
        4. HDFS-8545.4.patch
          4 kB
          J.Andreina
        5. HDFS-8545.3.patch
          4 kB
          J.Andreina
        6. HDFS-8545.2.patch
          3 kB
          J.Andreina
        7. HDFS-8545.1.patch
          3 kB
          J.Andreina

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: