hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10724) `hadoop fs -du -h` incorrectly formatted
Date Mon, 07 Aug 2017 22:01:00 GMT

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

Hadoop QA commented on HADOOP-10724:
------------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m  0s{color} | {color:blue}
Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m  5s{color} | {color:red}
HADOOP-10724 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute
for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HADOOP-10724 |
| JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12728878/0001-HADOOP-10724-do-not-insert-a-space-between-number-an.patch
|
| Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/12970/console |
| Powered by | Apache Yetus 0.6.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> `hadoop fs -du -h` incorrectly formatted
> ----------------------------------------
>
>                 Key: HADOOP-10724
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10724
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Sam Steingold
>            Assignee: Sam Steingold
>         Attachments: 0001-HADOOP-10724-do-not-insert-a-space-between-number-an.patch
>
>
> {{hadoop fs -du -h}} prints sizes with a space between the number and the unit:
> {code}
> $ hadoop fs -du -h ..... 
> 91.7 G   ....
> 583.1 M  ....
> 97.6 K   .....
> {code}
> The standard unix {{du -h}} does not:
> {code}
> $ du -h
> 400K    ...
> 404K    ....
> 480K    .....
> {code}
> the result is that the output of {{du -h}} is properly sorted by {{sort -h}} while the
output of {{hadoop fs -du -h}} is *not* properly sorted by it.
> Please see 
> * [sort|http://linux.die.net/man/1/sort]: "-h --human-numeric-sort
>     compare human readable numbers (e.g., 2K 1G) "
> * [du|http://linux.die.net/man/1/du]: "-h, --human-readable
>     print sizes in human readable format (e.g., 1K 234M 2G) "



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message