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

Add -v option for du command to show header line

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha4
    • Component/s: hdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Like hdfs -count command, it's better to add -v for du command to show header line.

      Without -v,
      $ hdfs -du -h -s /tmp/parent

      1 G  1 G  /tmp/parent
      

      With -v,
      $ hdfs -du -h -s -v /tmp/parent

      SIZE DISK_SPACE_CONSUMED_WITH_ALL_REPLICAS FULL_PATH_NAME
      1 G   1 G        /tmp/parent
      

      $ hdfs dfs -count -q -v -h -x /tmp/parent

      QUOTA       REM_QUOTA     SPACE_QUOTA REM_SPACE_QUOTA    DIR_COUNT   FILE_COUNT       CONTENT_SIZE PATHNAME
      10               7            50 G            49 G            2            1                1 G /tmp/parent
      

        Attachments

        1. HDFS-11803.000.patch
          3 kB
          Xiaobing Zhou
        2. HDFS-11803.001.patch
          5 kB
          Xiaobing Zhou
        3. HDFS-11803.002.patch
          5 kB
          Xiaobing Zhou

          Issue Links

            Activity

              People

              • Assignee:
                xiaobingo Xiaobing Zhou
                Reporter:
                xiaobingo Xiaobing Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: