You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@twill.apache.org by ch...@apache.org on 2017/08/07 20:52:30 UTC
[5/6] twill git commit: Only copy twill configurations into the
runtime spec to reduce file size
Only copy twill configurations into the runtime spec to reduce file size
Project: http://git-wip-us.apache.org/repos/asf/twill/repo
Commit: http://git-wip-us.apache.org/repos/asf/twill/commit/8a42f8c7
Tree: http://git-wip-us.apache.org/repos/asf/twill/tree/8a42f8c7
Diff: http://git-wip-us.apache.org/repos/asf/twill/diff/8a42f8c7
Branch: refs/heads/feature/TWILL-241-per-runnable-opts
Commit: 8a42f8c720462b566b8f59de7a23fb8400b98fcb
Parents: a757089
Author: Terence Yim <ch...@apache.org>
Authored: Fri Aug 4 21:16:00 2017 -0700
Committer: Terence Yim <ch...@apache.org>
Committed: Sat Aug 5 02:19:35 2017 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/twill/blob/8a42f8c7/twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java
----------------------------------------------------------------------
diff --git a/twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java b/twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java
index c2b0ee5..0eba62b 100644
--- a/twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java
+++ b/twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java
@@ -698,7 +698,9 @@ final class YarnTwillPreparer implements TwillPreparer {
spec.getPlacementPolicies(), eventHandler);
Map<String, String> configMap = Maps.newHashMap();
for (Map.Entry<String, String> entry : config) {
- configMap.put(entry.getKey(), entry.getValue());
+ if (entry.getKey().startsWith("twill.")) {
+ configMap.put(entry.getKey(), entry.getValue());
+ }
}
TwillRuntimeSpecification twillRuntimeSpec = new TwillRuntimeSpecification(