Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

Commit

Permalink
Closes OOZIE-120 coordinator resolve config default variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Kaichen Huang authored and bansalmayank committed Jul 22, 2011
1 parent d831e88 commit 2132585
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -26,6 +26,7 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;

Expand Down Expand Up @@ -87,7 +88,7 @@
*/
public class CoordSubmitXCommand extends SubmitTransitionXCommand {

private final Configuration conf;
private Configuration conf;
private final String authToken;
private final String bundleId;
private final String coordName;
Expand Down Expand Up @@ -370,6 +371,14 @@ protected void mergeDefaultConfig() throws CommandException {
LOG.info("configDefault Doesn't exist " + configDefault);
}
PropertiesUtils.checkDisallowedProperties(conf, DISALLOWED_USER_PROPERTIES);

// Resolving all variables in the job properties.
// This ensures the Hadoop Configuration semantics is preserved.
XConfiguration resolvedVarsConf = new XConfiguration();
for (Map.Entry<String, String> entry : conf) {
resolvedVarsConf.set(entry.getKey(), conf.get(entry.getKey()));
}
conf = resolvedVarsConf;
}
catch (IOException e) {
throw new CommandException(ErrorCode.E0702, e.getMessage() + " : Problem reading default config "
Expand Down
1 change: 1 addition & 0 deletions release-log.txt
Expand Up @@ -18,6 +18,7 @@ OOZIE-108 Upgrade pom version to 3.1.0.

-- Oozie 3.0.2 release

OOZIE-120 coordinator resolve config default variable
OOZIE-119 relative path in coord dataset include should throw exception if given
OOZIE-115 oozie should check if app path is directory and read the app xml under it

Expand Down

0 comments on commit 2132585

Please sign in to comment.