hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kousuke Saruta (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-9668) Configuration#iterator method should interpret variables in a property as well as Configuration#get method
Date Tue, 25 Jun 2013 00:52:20 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-9668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kousuke Saruta updated HADOOP-9668:
-----------------------------------

    Description: 
o.a.h.conf.Configuration#get method interpret variables in a property in *-site.xml but Configuration#iterator
method don't.

For example, when a property "user.name" is set to "hadoop" and another property "hadoop.tmp.dir"
is set to "/tmp/$${user.name}", Configuration#get interpret "hadoop.tmp.dir" as "/tmp/hadoop"
but Configuration#iterator don't interpret.

I think Configuration#iterator should interpret variables or if there are some reasons, it
should be documented that Configuration#iterator don't interpret variables.

  was:
o.a.h.conf.Configuration#get method interpret variables in a property in *-site.xml but Configuration#iterator
method don't.

For example, when a property "user.name" is set to "hadoop" and another property "hadoop.tmp.dir"
is set to "/tmp/\${user.name}", Configuration#get interpret "hadoop.tmp.dir" as "/tmp/hadoop"
but Configuration#iterator don't interpret.

I think Configuration#iterator should interpret variables or if there are some reasons, it
should be documented that Configuration#iterator don't interpret variables.

    
> Configuration#iterator method should interpret variables in a property as well as Configuration#get
method
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9668
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9668
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 2.1.0-beta, 1.2.1
>            Reporter: Kousuke Saruta
>            Priority: Minor
>              Labels: newbie
>
> o.a.h.conf.Configuration#get method interpret variables in a property in *-site.xml but
Configuration#iterator method don't.
> For example, when a property "user.name" is set to "hadoop" and another property "hadoop.tmp.dir"
is set to "/tmp/$${user.name}", Configuration#get interpret "hadoop.tmp.dir" as "/tmp/hadoop"
but Configuration#iterator don't interpret.
> I think Configuration#iterator should interpret variables or if there are some reasons,
it should be documented that Configuration#iterator don't interpret variables.

--
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

Mime
View raw message