|
@@ -39,6 +39,7 @@ import java.io.IOException;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
import java.util.Map.Entry;
|
|
import java.util.Map.Entry;
|
|
|
|
|
|
|
|
+import static org.apache.hadoop.yarn.service.conf.YarnServiceConf.CONTAINER_FAILURES_VALIDITY_INTERVAL;
|
|
import static org.apache.hadoop.yarn.service.conf.YarnServiceConf.CONTAINER_RETRY_INTERVAL;
|
|
import static org.apache.hadoop.yarn.service.conf.YarnServiceConf.CONTAINER_RETRY_INTERVAL;
|
|
import static org.apache.hadoop.yarn.service.conf.YarnServiceConf.CONTAINER_RETRY_MAX;
|
|
import static org.apache.hadoop.yarn.service.conf.YarnServiceConf.CONTAINER_RETRY_MAX;
|
|
import static org.apache.hadoop.yarn.service.utils.ServiceApiUtil.$;
|
|
import static org.apache.hadoop.yarn.service.utils.ServiceApiUtil.$;
|
|
@@ -109,6 +110,8 @@ public abstract class AbstractProviderService implements ProviderService,
|
|
.getInt(CONTAINER_RETRY_MAX, -1, service.getConfiguration(),
|
|
.getInt(CONTAINER_RETRY_MAX, -1, service.getConfiguration(),
|
|
yarnConf), YarnServiceConf
|
|
yarnConf), YarnServiceConf
|
|
.getInt(CONTAINER_RETRY_INTERVAL, 30000, service.getConfiguration(),
|
|
.getInt(CONTAINER_RETRY_INTERVAL, 30000, service.getConfiguration(),
|
|
- yarnConf));
|
|
|
|
|
|
+ yarnConf),
|
|
|
|
+ YarnServiceConf.getLong(CONTAINER_FAILURES_VALIDITY_INTERVAL, -1,
|
|
|
|
+ service.getConfiguration(), yarnConf));
|
|
}
|
|
}
|
|
}
|
|
}
|