Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D812F105DE for ; Tue, 4 Mar 2014 08:07:42 +0000 (UTC) Received: (qmail 72503 invoked by uid 500); 4 Mar 2014 08:07:36 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 72040 invoked by uid 500); 4 Mar 2014 08:07:27 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 72016 invoked by uid 99); 4 Mar 2014 08:07:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 08:07:23 +0000 Date: Tue, 4 Mar 2014 08:07:23 +0000 (UTC) From: "Mingjiang Shi (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-10381) Support unit suffix in the configuration values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mingjiang Shi created HADOOP-10381: -------------------------------------- Summary: 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: 64k, 64kb, 128m, 128mb, 1g, 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 (v6.2#6252)