[
https://issues.apache.org/jira/browse/HADOOP-10724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18049043#comment-18049043
]
ASF GitHub Bot commented on HADOOP-10724:
-----------------------------------------
github-actions[bot] commented on PR #3:
URL: https://github.com/apache/hadoop/pull/3#issuecomment-3708580665
We're closing this stale PR because it has been open for 100 days with no
activity. This isn't a judgement on the merit of the PR in any way. It's just a
way of keeping the PR queue manageable.
If you feel like this was a mistake, or you would like to continue working
on it, please feel free to re-open it and ask for a committer to remove the
stale tag and review again.
Thanks all for your contribution.
> `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
> Priority: Major
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]