hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11803) Add -v option for du command to show header line
Date Fri, 19 May 2017 22:15:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16018107#comment-16018107
] 

Hudson commented on HDFS-11803:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11757 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11757/])
HDFS-11803. Add -v option for du command to show header line. (liuml07: rev 1db186f662af971d956d74aed03150b0692a2315)
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java
* (edit) hadoop-common-project/hadoop-common/src/test/resources/testConf.xml
* (edit) hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md


> Add -v option for du command to show header line
> ------------------------------------------------
>
>                 Key: HDFS-11803
>                 URL: https://issues.apache.org/jira/browse/HDFS-11803
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
>             Fix For: 3.0.0-alpha3
>
>         Attachments: HDFS-11803.000.patch, HDFS-11803.001.patch, HDFS-11803.002.patch
>
>
> 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
> {noformat}
> 1 G  1 G  /tmp/parent
> {noformat}
> With -v,
> $ hdfs -du -h -s -v /tmp/parent
> {noformat}
> SIZE DISK_SPACE_CONSUMED_WITH_ALL_REPLICAS FULL_PATH_NAME
> 1 G   1 G        /tmp/parent
> {noformat}
> $ hdfs dfs -count -q -v  -h -x  /tmp/parent
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message