[
https://issues.apache.org/jira/browse/OOZIE-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shwetha G S updated OOZIE-2058:
-------------------------------
Description:
{code}
ConfigurationService.loadConf():
InputStream inputStream = getDefaultConfiguration();
configuration = loadConfig(inputStream, true);
XConfiguration siteConfiguration = loadConfig(inputStream,
false);
XConfiguration.injectDefaults(configuration, siteConfiguration);
XConfiguration:
public static void injectDefaults(Configuration source, Configuration
target) {
if (source != null) {
for (Map.Entry<String, String> entry : source) {
if (target.get(entry.getKey()) == null) {
target.set(entry.getKey(), entry.getValue());
}
}
}
}
{code}
Since oozie-default.xml has all the default values, none of the properties will
be null and hence no property from oozie-site.xml will be loaded
was:
{code}
ConfigurationService.loadConf():
XConfiguration siteConfiguration = loadConfig(inputStream,
false);
XConfiguration.injectDefaults(configuration, siteConfiguration);
XConfiguration:
public static void injectDefaults(Configuration source, Configuration
target) {
if (source != null) {
for (Map.Entry<String, String> entry : source) {
if (target.get(entry.getKey()) == null) {
target.set(entry.getKey(), entry.getValue());
}
}
}
}
{code}
Since oozie-default.xml has all the default values, none of the properties will
be null and hence no property from oozie-site.xml will be loaded
> Configs from oozie-site are not loaded
> --------------------------------------
>
> Key: OOZIE-2058
> URL: https://issues.apache.org/jira/browse/OOZIE-2058
> Project: Oozie
> Issue Type: Bug
> Reporter: Shwetha G S
> Priority: Critical
>
> {code}
> ConfigurationService.loadConf():
> InputStream inputStream = getDefaultConfiguration();
> configuration = loadConfig(inputStream, true);
> XConfiguration siteConfiguration = loadConfig(inputStream,
> false);
> XConfiguration.injectDefaults(configuration,
> siteConfiguration);
> XConfiguration:
> public static void injectDefaults(Configuration source, Configuration
> target) {
> if (source != null) {
> for (Map.Entry<String, String> entry : source) {
> if (target.get(entry.getKey()) == null) {
> target.set(entry.getKey(), entry.getValue());
> }
> }
> }
> }
> {code}
> Since oozie-default.xml has all the default values, none of the properties
> will be null and hence no property from oozie-site.xml will be loaded
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)