Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14A23E27B for ; Fri, 18 Jan 2013 11:38:28 +0000 (UTC) Received: (qmail 73794 invoked by uid 500); 18 Jan 2013 11:38:27 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 72999 invoked by uid 500); 18 Jan 2013 11:38:16 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 72720 invoked by uid 99); 18 Jan 2013 11:38:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 11:38:13 +0000 Date: Fri, 18 Jan 2013 11:38:13 +0000 (UTC) From: "Zesheng Wu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9223) support specify config items through system property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557155#comment-13557155 ] Zesheng Wu commented on HADOOP-9223: ------------------------------------ Thanks for your quick reply! 1. In the patch, I added a prefix 'hadoop.property.' for config items, this intends to differ the config items passed by -D'hadoop.property.$name=$value' from the current normal options passed by -D'$name=$value', I do understand your worry, which is also mine, considering this, I added the prefix, which just acts like a switch:) 2. About the order of preference, it's just the same as what you said, a system property is more preferred than a file. I will add some tests, and submit it later 3. Sorry about the my mistake of error specifying of the version:( > support specify config items through system property > ---------------------------------------------------- > > Key: HADOOP-9223 > URL: https://issues.apache.org/jira/browse/HADOOP-9223 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Affects Versions: 2.0.0-alpha > Reporter: Zesheng Wu > Priority: Minor > Labels: configuration, hadoop > Attachments: HADOOP-9223.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > The current hadoop config items are mainly interpolated from the *-site.xml files. In our production environment, we need a mechanism that can specify config items through system properties, which is something like the gflags in system built with C++, it's really very handy. > The main purpose of this patch is to improve the convenience of hadoop systems, especially when people do testing or perf tuning, which always need to modify the *-site.xml files > If this patch is applied, then people can start hadoop programs in this way: java -cp $class_path -Dhadoop.property.$name=$value $program -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira