diff --git llap-server/src/main/resources/templates.py llap-server/src/main/resources/templates.py index 00a84cf04f..1dc1611bf8 100644 --- llap-server/src/main/resources/templates.py +++ llap-server/src/main/resources/templates.py @@ -6,10 +6,9 @@ "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 @@ "cpus": 1, "memory": "%(container.mb)d" }, + "placement_policy": { + "constraints": [ + { + "type": "ANTI_AFFINITY", + "scope": "NODE", + "target_tags": [ + "llap" + ] + } + ] + }, "configuration": { "env": { "JAVA_HOME": "%(java_home)s",