diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/conf/YarnServiceConf.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/conf/YarnServiceConf.java index 13ed1aaca9..b9568f23fd 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/conf/YarnServiceConf.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/conf/YarnServiceConf.java @@ -34,12 +34,13 @@ public class YarnServiceConf { // Retry settings for container failures public static final String CONTAINER_RETRY_MAX = "yarn.service.container-failure.retry.max"; - public static final int DEFAULT_CONTAINER_RETRY_MAX = -1; + public static final int DEFAULT_CONTAINER_RETRY_MAX = 10; public static final String CONTAINER_RETRY_INTERVAL = "yarn.service.container-failure.retry-interval-ms"; public static final int DEFAULT_CONTAINER_RETRY_INTERVAL = 30000; public static final String CONTAINER_FAILURES_VALIDITY_INTERVAL = "yarn.service.container-failure.validity-interval-ms"; - public static final long DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL = -1; + public static final long DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL = + 600000; public static final String AM_RESTART_MAX = "yarn.service.am-restart.max-attempts"; public static final int DEFAULT_AM_RESTART_MAX = 20;