You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eric Badger (JIRA)" <ji...@apache.org> on 2018/04/02 18:30:00 UTC
[jira] [Updated] (HADOOP-15357) Configuration.getPropsWithPrefix no
longer does variable substitution
[ https://issues.apache.org/jira/browse/HADOOP-15357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Badger updated HADOOP-15357:
---------------------------------
Description:
_emphasized text_Before [HADOOP-13556], Configuration.getPropsWithPrefix() used the Configuration.get() method to get the value of the variables. After [HADOOP-13556], it now uses props.getProperty().
The difference is that Configuration.get() does deprecation handling and more importantly variable substitution on the value. So if a property has a variable specified with ${variable_name}, it will no longer be expanded when retrieved via getPropsWithPrefix().
Was this change in behavior intentional? I am using this function in the fix for [MAPREDUCE-7069], but we do want variable expansion to happen.
was:
Before [HADOOP-13556], Configuration.getPropsWithPrefix() used the Configuration.get() method to get the value of the variables. After [HADOOP-13556], it now uses props.getProperty().
The difference is that Configuration.get() does deprecation handling and more importantly variable substitution on the value. So if a property has a variable specified with ${variable_name}, it will no longer be expanded when retrieved via getPropsWithPrefix().
Was this change in behavior intentional? I am using this function in the fix for [MAPREDUCE-7069], but we do want variable expansion to happen.
> Configuration.getPropsWithPrefix no longer does variable substitution
> ---------------------------------------------------------------------
>
> Key: HADOOP-15357
> URL: https://issues.apache.org/jira/browse/HADOOP-15357
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Jim Brennan
> Priority: Major
>
> _emphasized text_Before [HADOOP-13556], Configuration.getPropsWithPrefix() used the Configuration.get() method to get the value of the variables. After [HADOOP-13556], it now uses props.getProperty().
> The difference is that Configuration.get() does deprecation handling and more importantly variable substitution on the value. So if a property has a variable specified with ${variable_name}, it will no longer be expanded when retrieved via getPropsWithPrefix().
> Was this change in behavior intentional? I am using this function in the fix for [MAPREDUCE-7069], but we do want variable expansion to happen.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org