[
https://issues.apache.org/jira/browse/HADOOP-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760208#action_12760208
]
Steve Loughran commented on HADOOP-6287:
----------------------------------------
I think units are good, but they might need to be restricted to those conf
values that are asking for disk/memory capacity, rather than any integer.
# if you are worrying about network rates, Gb for gigabit is the unit to
consider, anyone passing in PB is really in error
# in {{dfs.blockreport.intervalMsec}}, and other time ranges, the value should
be mS, S, minutes, hours, etc.
While I am not proposing anyone rushes to do a complete type-safe framework,
maybe a {{conf.getStorageValue()}} might be the right method to return a
storage value; other units of measurement could be patched in for different
types later
> Support units for configuration knobs
> -------------------------------------
>
> Key: HADOOP-6287
> URL: https://issues.apache.org/jira/browse/HADOOP-6287
> Project: Hadoop Common
> Issue Type: Improvement
> Components: conf
> Reporter: Arun C Murthy
> Assignee: Eli Collins
> Attachments: hadoop-6287-1.patch
>
>
> We should add support for units in our Configuration system so that we can
> specify values to be *1GB* or *1MB* rather than forcing every component which
> consumes such values to be aware of these.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.