[
https://issues.apache.org/jira/browse/HDFS-14377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796459#comment-16796459
]
Anu Engineer edited comment on HDFS-14377 at 3/19/19 10:14 PM:
---------------------------------------------------------------
[~dannytbecker] That would mean that UI says GB and it means 1500, command line
says GB and it would mean 1536 – I am not sure that would fly. Even this
current change, I am sure is going to be objected eventually by someone saying
the UI is showing up as MiB and some tool somewhere prints out in MB. If you
would like to make a change like this, you will end up sweeping the code base
to see the usage (there are quite a few places that I am familiar with) and
then trying to convert all of them (but that runs into the Hadoop app-compact
rules, so touching any tool that has an output to screen is a complex problem
by itself).
Then of-course, you have still not met the folks who would tell you that KB, MB
looks much better than KiB and MiB etc.
In other words, it is not an easy problem or a single line fix – Unfortunately,
a change like this is one of the hardest to make in the Hadoop world, trust me,
been there, done and that and backed off since the community hit me on my head
:). I am just saving you some pain ....
was (Author: anu):
[~dannytbecker] That would mean that UI says GB and it means 1500, command line
says GB and it would mean 1536 – I am not sure that would fly. Even this
current change, I am sure is going to be objected eventually by someone saying
the UI is showing up as MiB and some tool somewhere prints out in MB. If you
would like to make a change like this, you will end up sweeping the code base
to see the usage (there are quite I few places that I am familiar with) and
then trying to convert all of them (but that runs into the Hadoop app-compact
rules, so touching any tool that has an output to screen is a complex problem
by itself).
Then of-course, you have still not met the folks who would tell you that KB, MB
looks much better than KiB and MiB etc.
In other words, it is not an easy problem or a single line fix – Unfortunately,
a change like this is one of the hardest to make in the Hadoop world, trust me,
been there, done and that and backed off since the community hit me on my head
:). I am just saving you some pain ....
> Incorrect unit abbreviations shown for fmt_bytes
> ------------------------------------------------
>
> Key: HDFS-14377
> URL: https://issues.apache.org/jira/browse/HDFS-14377
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Danny Becker
> Assignee: Danny Becker
> Priority: Trivial
> Attachments: HDFS-14377.000.patch
>
>
> The function fmt_bytes show the abbreviations for Terabyte, Petabyte, etc.
> the standard metric system units for data storage units. The function however
> divides by a factor of 1024, which is the factor used for Pebibyte, Tebibyte,
> etc. Change the abbreviations from TB, PB, etc to TiB, PiB, etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]