Class YarnServiceConf
java.lang.Object
org.apache.hadoop.yarn.service.conf.YarnServiceConf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaximum number of failed containers (in a single component) before the app exitsstatic final StringThe failure count for CONTAINER_FAILURE_THRESHOLD and NODE_BLACKLIST_THRESHOLD gets reset periodically, the unit is seconds.static final Stringstatic final StringThe amount of initial time the health check monitor waits before the first check kicks in.static final StringThe container health threshold percent when explicitly set for a specific component or globally for all components, will schedule a health check monitor to periodically check for the percentage of healthy containers.static final intBy default the health threshold percent does not come into play until it is explicitly set in resource config for a specific component or globally for all components. -1 signifies disabled.static final StringHealth check monitor poll frequency.static final StringThe amount of time the health check monitor allows a specific component to be below the health threshold after which it considers the service to be unhealthy.static final StringHow long to wait until a container is considered dead.static final Stringstatic final Stringstatic final longstatic final Stringstatic final intstatic final Stringstatic final intstatic final longstatic final longstatic final intstatic final longstatic final longstatic final longstatic final intstatic final longstatic final longstatic final intstatic final intstatic final intstatic final longstatic final intstatic final StringDefault readiness check enabled.static final booleanstatic final intstatic final Stringstatic final StringThe dependency tarball file location.static final Stringstatic final Stringstatic final StringJVM opts.static final StringMaximum number of container failures on a node before the node is blacklistedstatic final Stringinterval between readiness checks.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe yarn service base path: Defaults to HomeDir/.yarn/static final Stringstatic final Stringstatic final StringUpgrade feature enabled for services.static final booleanstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringget(String name, String defaultVal, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) static booleangetBoolean(String name, boolean defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) static intgetInt(String name, int defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) static longgetLong(String name, long defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) Get long value for the property.
-
Field Details
-
CLIENT_AM_RETRY_MAX_WAIT_MS
- See Also:
-
DEFAULT_CLIENT_AM_RETRY_MAX_WAIT_MS
public static final long DEFAULT_CLIENT_AM_RETRY_MAX_WAIT_MS- See Also:
-
CLIENT_AM_RETRY_MAX_INTERVAL_MS
- See Also:
-
DEFAULT_CLIENT_AM_RETRY_MAX_INTERVAL_MS
public static final long DEFAULT_CLIENT_AM_RETRY_MAX_INTERVAL_MS- See Also:
-
CONTAINER_RETRY_MAX
- See Also:
-
DEFAULT_CONTAINER_RETRY_MAX
public static final int DEFAULT_CONTAINER_RETRY_MAX- See Also:
-
CONTAINER_RETRY_INTERVAL
- See Also:
-
DEFAULT_CONTAINER_RETRY_INTERVAL
public static final int DEFAULT_CONTAINER_RETRY_INTERVAL- See Also:
-
CONTAINER_FAILURES_VALIDITY_INTERVAL
- See Also:
-
DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL
public static final long DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL- See Also:
-
AM_RESTART_MAX
- See Also:
-
DEFAULT_AM_RESTART_MAX
public static final int DEFAULT_AM_RESTART_MAX- See Also:
-
AM_FAILURES_VALIDITY_INTERVAL
- See Also:
-
DEFAULT_AM_FAILURES_VALIDITY_INTERVAL
public static final long DEFAULT_AM_FAILURES_VALIDITY_INTERVAL- See Also:
-
AM_RESOURCE_MEM
- See Also:
-
DEFAULT_KEY_AM_RESOURCE_MEM
public static final long DEFAULT_KEY_AM_RESOURCE_MEM- See Also:
-
YARN_SERVICE_AM_CLIENT_PORT_RANGE
- See Also:
-
YARN_QUEUE
- See Also:
-
DEFAULT_YARN_QUEUE
- See Also:
-
API_SERVER_ADDRESS
- See Also:
-
DEFAULT_API_SERVER_ADDRESS
- See Also:
-
DEFAULT_API_SERVER_PORT
public static final int DEFAULT_API_SERVER_PORT- See Also:
-
FINAL_LOG_INCLUSION_PATTERN
- See Also:
-
FINAL_LOG_EXCLUSION_PATTERN
- See Also:
-
ROLLING_LOG_INCLUSION_PATTERN
- See Also:
-
ROLLING_LOG_EXCLUSION_PATTERN
- See Also:
-
YARN_SERVICE_CLASSPATH
- See Also:
-
YARN_SERVICES_SYSTEM_SERVICE_DIRECTORY
- See Also:
-
YARN_SERVICE_BASE_PATH
The yarn service base path: Defaults to HomeDir/.yarn/- See Also:
-
CONTAINER_FAILURE_THRESHOLD
maximum number of failed containers (in a single component) before the app exits- See Also:
-
DEFAULT_CONTAINER_FAILURE_THRESHOLD
public static final int DEFAULT_CONTAINER_FAILURE_THRESHOLD- See Also:
-
NODE_BLACKLIST_THRESHOLD
Maximum number of container failures on a node before the node is blacklisted- See Also:
-
DEFAULT_NODE_BLACKLIST_THRESHOLD
public static final int DEFAULT_NODE_BLACKLIST_THRESHOLD- See Also:
-
CONTAINER_FAILURE_WINDOW
The failure count for CONTAINER_FAILURE_THRESHOLD and NODE_BLACKLIST_THRESHOLD gets reset periodically, the unit is seconds.- See Also:
-
DEFAULT_CONTAINER_FAILURE_WINDOW
public static final long DEFAULT_CONTAINER_FAILURE_WINDOW- See Also:
-
READINESS_CHECK_INTERVAL
interval between readiness checks.- See Also:
-
DEFAULT_READINESS_CHECK_INTERVAL
public static final int DEFAULT_READINESS_CHECK_INTERVAL- See Also:
-
DEFAULT_READINESS_CHECK_ENABLED
Default readiness check enabled.- See Also:
-
DEFAULT_READINESS_CHECK_ENABLED_DEFAULT
public static final boolean DEFAULT_READINESS_CHECK_ENABLED_DEFAULT- See Also:
-
JVM_OPTS
JVM opts.- See Also:
-
DEFAULT_AM_JVM_XMX
- See Also:
-
CONTAINER_RECOVERY_TIMEOUT_MS
How long to wait until a container is considered dead.- See Also:
-
DEFAULT_CONTAINER_RECOVERY_TIMEOUT_MS
public static final int DEFAULT_CONTAINER_RECOVERY_TIMEOUT_MS- See Also:
-
DEPENDENCY_TARBALL_PATH
The dependency tarball file location.- See Also:
-
YARN_SERVICE_CONTAINER_HEALTH_THRESHOLD_PREFIX
- See Also:
-
YARN_SERVICE_UPGRADE_ENABLED
Upgrade feature enabled for services.- See Also:
-
YARN_SERVICE_UPGRADE_ENABLED_DEFAULT
public static final boolean YARN_SERVICE_UPGRADE_ENABLED_DEFAULT- See Also:
-
CONTAINER_HEALTH_THRESHOLD_PERCENT
The container health threshold percent when explicitly set for a specific component or globally for all components, will schedule a health check monitor to periodically check for the percentage of healthy containers. It runs the check at a specified/default poll frequency. It allows a component to be below the health threshold for a specified/default window after which it considers the service to be unhealthy and triggers a service stop. When health threshold percent is enabled, CONTAINER_FAILURE_THRESHOLD is ignored.- See Also:
-
CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC
Health check monitor poll frequency. It is an advanced setting and does not need to be set unless the service owner understands the implication and does not want the default.- See Also:
-
CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC
The amount of time the health check monitor allows a specific component to be below the health threshold after which it considers the service to be unhealthy.- See Also:
-
CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC
The amount of initial time the health check monitor waits before the first check kicks in. It gives a lead time for the service containers to come up for the first time.- See Also:
-
CONTAINER_HEALTH_THRESHOLD_PERCENT_DISABLED
public static final int CONTAINER_HEALTH_THRESHOLD_PERCENT_DISABLEDBy default the health threshold percent does not come into play until it is explicitly set in resource config for a specific component or globally for all components. -1 signifies disabled.- See Also:
-
DEFAULT_CONTAINER_HEALTH_THRESHOLD_PERCENT
public static final int DEFAULT_CONTAINER_HEALTH_THRESHOLD_PERCENT- See Also:
-
DEFAULT_CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC
public static final long DEFAULT_CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC- See Also:
-
DEFAULT_CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC
public static final long DEFAULT_CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC- See Also:
-
DEFAULT_CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC
public static final long DEFAULT_CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC- See Also:
-
-
Constructor Details
-
YarnServiceConf
public YarnServiceConf()
-
-
Method Details
-
getLong
public static long getLong(String name, long defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) Get long value for the property. First get from the userConf, if not present, get from systemConf.- Parameters:
name- name of the propertydefaultValue- default value of the property, if it is not defined in userConf and systemConf.userConf- Configuration provided by client in the JSON definitionsystemConf- The YarnConfiguration in the system.- Returns:
- long value for the property
-
getInt
public static int getInt(String name, int defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) -
getBoolean
public static boolean getBoolean(String name, boolean defaultValue, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf) -
get
public static String get(String name, String defaultVal, Configuration userConf, org.apache.hadoop.conf.Configuration systemConf)
-