Repository: hive Updated Branches: refs/heads/master 41de95318 -> c8f05138a
HIVE-19304 : Update templates.py based on config changes in YARN-7142 and YARN-8122 (Gour Saha, reviewed by Sergey Shelukhin) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c8f05138 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c8f05138 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c8f05138 Branch: refs/heads/master Commit: c8f05138a181492a8307798e47ebf58558c7d1f9 Parents: 41de953 Author: sergey <[email protected]> Authored: Tue May 1 12:05:29 2018 -0700 Committer: sergey <[email protected]> Committed: Tue May 1 12:05:29 2018 -0700 ---------------------------------------------------------------------- llap-server/src/main/resources/templates.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/c8f05138/llap-server/src/main/resources/templates.py ---------------------------------------------------------------------- diff --git a/llap-server/src/main/resources/templates.py b/llap-server/src/main/resources/templates.py index 00a84cf..1dc1611 100644 --- a/llap-server/src/main/resources/templates.py +++ b/llap-server/src/main/resources/templates.py @@ -6,10 +6,9 @@ yarnfile = """ "configuration": { "properties": { "yarn.service.rolling-log.include-pattern": ".*\\\\.done", - "yarn.component.placement.policy" : "%(placement)d", - "yarn.container.health.threshold.percent": "%(health_percent)d", - "yarn.container.health.threshold.window.secs": "%(health_time_window)d", - "yarn.container.health.threshold.init.delay.secs": "%(health_init_delay)d"%(service_appconfig_global_append)s + "yarn.service.container-health-threshold.percent": "%(health_percent)d", + "yarn.service.container-health-threshold.window-secs": "%(health_time_window)d", + "yarn.service.container-health-threshold.init-delay-secs": "%(health_init_delay)d"%(service_appconfig_global_append)s } }, "components": [ @@ -25,6 +24,17 @@ yarnfile = """ "cpus": 1, "memory": "%(container.mb)d" }, + "placement_policy": { + "constraints": [ + { + "type": "ANTI_AFFINITY", + "scope": "NODE", + "target_tags": [ + "llap" + ] + } + ] + }, "configuration": { "env": { "JAVA_HOME": "%(java_home)s",
