[
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