[
https://issues.apache.org/jira/browse/HDFS-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HDFS-3226:
------------------------------
Attachment: hdfs-3226.txt
Attached patch adds: {{hdfs getconf -confKey foo}} which will read and print
the given key. I also made it always trim the results, since there are no
configs where whitespace around the edge is semantically important, and
trimming in bash is a pain.
> Allow GetConf tool to print arbitrary keys
> ------------------------------------------
>
> Key: HDFS-3226
> URL: https://issues.apache.org/jira/browse/HDFS-3226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: tools
> Affects Versions: 2.0.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Attachments: hdfs-3226.txt
>
>
> Currently the "hdfs getconf" tool can only print out certain keys, like the
> list of NNs, etc. It would be handy to allow it to fetch an arbitrary
> configuration. For example, users may wish to write shell scripts that
> interact with their hadoop cluster, and it is useful to be able to fetch
> configs like the name of the superuser, or the state of whether HA is enabled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira