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

Shwetha G S resolved OOZIE-2058.
--------------------------------
    Resolution: Invalid

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

Reply via email to