hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingjiang Shi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10381) Support unit suffix in the configuration values
Date Tue, 04 Mar 2014 10:12:22 GMT

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

Mingjiang Shi commented on HADOOP-10381:

Hi Steve,
Thanks for the comments.
1. Include the unit in the name is a good idea, and some configuration items do follow this
2. regard to the unit ambiguity, some practice may be followed:
- for size related unit, 1gb or 1GB usually mean 1 gigabytes.
- use less ambiguous suffix, for example, avoid using 1m to stand for 1mb.

> Support unit suffix in the configuration values 
> ------------------------------------------------
>                 Key: HADOOP-10381
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10381
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 2.3.0
>            Reporter: Mingjiang Shi
> *Background*
> Currently, most configuration values implicitly indicate the unit, for example:
> - {{dfs.namenode.delegation.key.update-interval}}, the unit is milliseconds,
> - {{dfs.ha.log-roll.period}}, the unit is seconds
> - {{dfs.datanode.du.reserved}}, the unit is bytes
> *This causes a few inconveniences*
> 1. When modify a configuration file, one need to refer to the document to find out the
expected unit, convert from the human readable unit to the expect unit. Otherwise, wrong value
may be configured.
> 2. While reviewing the configuration file, it'll take some time to figure out the human
readable size of a large number.  For example, 134217728 is actually 128MB
> *Proposal*
> For any space or time related configurations, it should allow include the unit suffix,
for example:
> - space related units: 64kb, 128mb, 1gb
> - time related units: 1000ms, 1min, 60sec, 1hour
> If no unit suffix is given, the default unit for the configuration item is used.

This message was sent by Atlassian JIRA

View raw message