Example usage for Java org.apache.hadoop.yarn.conf YarnConfiguration fields, constructors, methods, implement or subclass
The text is from its open source code.
String | YARN_SITE_CONFIGURATION_FILE |
String | DEBUG_NM_DELETE_DELAY_SEC Delay before deleting resource to ease debugging of NM issues |
String | RM_HOSTNAME |
String | RM_ADDRESS The address of the applications manager interface in the RM. |
int | DEFAULT_RM_PORT |
String | DEFAULT_RM_ADDRESS |
String | RM_BIND_HOST The actual bind address for the RM. |
String | RM_PRINCIPAL The Kerberos principal for the resource manager. |
String | RM_SCHEDULER_ADDRESS The address of the scheduler interface. |
int | DEFAULT_RM_SCHEDULER_PORT |
String | DEFAULT_RM_SCHEDULER_ADDRESS |
String | RM_SCHEDULER_MINIMUM_ALLOCATION_MB Minimum request grant-able by the RM scheduler. |
int | DEFAULT_RM_SCHEDULER_MINIMUM_ALLOCATION_MB |
String | RM_SCHEDULER_MINIMUM_ALLOCATION_VCORES |
String | RM_SCHEDULER_MAXIMUM_ALLOCATION_MB Maximum request grant-able by the RM scheduler. |
int | DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_MB |
String | RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES |
int | DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES |
String | RM_SCHEDULER_INCLUDE_PORT_IN_NODE_NAME If the port should be included or not in the node name. |
boolean | DEFAULT_RM_SCHEDULER_USE_PORT_FOR_NODE_NAME |
String | RM_WEBAPP_ADDRESS The address of the RM web application. |
String | DEFAULT_RM_WEBAPP_ADDRESS |
String | RM_WEBAPP_HTTPS_ADDRESS The https address of the RM web application. |
String | DEFAULT_RM_WEBAPP_HTTPS_ADDRESS |
String | RM_RESOURCE_TRACKER_ADDRESS |
int | DEFAULT_RM_RESOURCE_TRACKER_PORT |
String | RM_AM_EXPIRY_INTERVAL_MS The expiry interval for application master reporting. |
int | DEFAULT_RM_AM_EXPIRY_INTERVAL_MS |
String | RM_NM_EXPIRY_INTERVAL_MS How long to wait until a node manager is considered dead. |
String | YARN_ACL_ENABLE Are acls enabled. |
boolean | DEFAULT_YARN_ACL_ENABLE |
String | YARN_ADMIN_ACL ACL of who can be admin of YARN cluster. |
String | DEFAULT_YARN_ADMIN_ACL |
String | RM_AM_MAX_ATTEMPTS The maximum number of application attempts. |
int | DEFAULT_RM_AM_MAX_ATTEMPTS |
String | RM_RESOURCE_TRACKER_CLIENT_THREAD_COUNT Number of threads to handle resource tracker calls. |
int | DEFAULT_RM_RESOURCE_TRACKER_CLIENT_THREAD_COUNT |
String | RM_SCHEDULER The class to use as the resource scheduler. |
String | RM_NM_HEARTBEAT_INTERVAL_MS RM set next Heartbeat interval for NM |
String | RM_HA_ENABLED |
boolean | DEFAULT_RM_HA_ENABLED |
String | RM_HA_ID |
String | DEFAULT_APPLICATION_NAME Default application name |
String | DEFAULT_QUEUE_NAME Default queue name |
String | NM_ADMIN_USER_ENV Environment variables that will be sent to containers. |
int | DEFAULT_NM_PORT |
String | NM_CONTAINER_EXECUTOR who will execute(launch) the containers. |
String | NM_CONTAINER_MGR_THREAD_COUNT Number of threads container manager uses. |
String | NM_LOCAL_DIRS List of directories to store localized files in. |
String | NM_LOG_DIRS Where to store container logs. |
String | DEFAULT_NM_LOG_DIRS |
String | LOG_AGGREGATION_ENABLED Whether to enable log aggregation |
boolean | DEFAULT_LOG_AGGREGATION_ENABLED |
String | NM_REMOTE_APP_LOG_DIR Where to aggregate logs to. |
String | DEFAULT_NM_REMOTE_APP_LOG_DIR |
String | NM_REMOTE_APP_LOG_DIR_SUFFIX The remote log dir will be created at NM_REMOTE_APP_LOG_DIR/${user}/NM_REMOTE_APP_LOG_DIR_SUFFIX/${appId} |
String | DEFAULT_NM_REMOTE_APP_LOG_DIR_SUFFIX |
String | YARN_LOG_SERVER_URL |
String | NM_PMEM_MB Amount of memory in MB that can be allocated for containers. |
int | DEFAULT_NM_PMEM_MB |
String | NM_PMEM_CHECK_ENABLED Specifies whether physical memory check is enabled. |
String | NM_VMEM_CHECK_ENABLED Specifies whether physical memory check is enabled. |
String | NM_VCORES Number of Virtual CPU Cores which can be allocated for containers. |
int | DEFAULT_NM_VCORES |
int | DEFAULT_NM_WEBAPP_PORT |
String | DEFAULT_NM_NONSECURE_MODE_LOCAL_USER |
String | NM_AUX_SERVICES |
String | NM_AUX_SERVICE_FMT |
String | RESOURCEMANAGER_CONNECT_MAX_WAIT_MS Max time to wait to establish a connection to RM |
long | DEFAULT_RESOURCEMANAGER_CONNECT_MAX_WAIT_MS |
String | RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS Time interval between each attempt to connect to RM |
String | YARN_APPLICATION_CLASSPATH CLASSPATH for YARN applications. |
String[] | DEFAULT_YARN_CROSS_PLATFORM_APPLICATION_CLASSPATH Default platform-agnostic CLASSPATH for YARN applications. |
String[] | DEFAULT_YARN_APPLICATION_CLASSPATH Default platform-specific CLASSPATH for YARN applications. |
String | DEFAULT_CONTAINER_TEMP_DIR Container temp directory |
String | IS_MINI_YARN_CLUSTER |
String | YARN_MINICLUSTER_FIXED_PORTS Whether to use fixed ports with the minicluster. |
String | YARN_APP_CONTAINER_LOG_DIR The log directory for the containers |
String | TIMELINE_SERVICE_VERSION |
String | TIMELINE_SERVICE_ENTITYGROUP_FS_STORE_ACTIVE_DIR |
String | TIMELINE_SERVICE_ENTITYGROUP_FS_STORE_DONE_DIR |
String | TIMELINE_SERVICE_ENTITYGROUP_FS_STORE_SUMMARY_ENTITY_TYPES |
String | TIMELINE_SERVICE_ENABLED The setting that controls whether timeline service is enabled or not. |
boolean | DEFAULT_TIMELINE_SERVICE_ENABLED |
String | TIMELINE_SERVICE_ADDRESS host:port address for timeline service RPC APIs. |
String | TIMELINE_SERVICE_WEBAPP_ADDRESS The address of the timeline service web application. |
String | TIMELINE_SERVICE_WEBAPP_HTTPS_ADDRESS The https address of the timeline service web application. |
String | TIMELINE_SERVICE_STORE Timeline service store class. |
String | YARN_CLIENT_APPLICATION_CLIENT_PROTOCOL_POLL_TIMEOUT_MS The duration that the yarn client library waits, cumulatively across polls, for an expected state change to occur. |
String | NM_CLIENT_MAX_NM_PROXIES Maximum number of proxy connections to cache for node managers. |
String | YARN_HTTP_POLICY_KEY |
String | YARN_HTTP_POLICY_DEFAULT |
String | NODE_LABELS_ENABLED Flag to indicate if the node labels feature enabled, by default it's disabled |
void | addResource(String name) Add a configuration resource. |
String | get(String name, String defaultValue) Get the value of the name . |
String | get(String name) Get the value of the name property, null if no such property exists. |
boolean | getBoolean(String name, boolean defaultValue) Get the value of the name property as a boolean . |
int | getInt(String name, int defaultValue) Get the value of the name property as an int . |
long | getLong(String name, long defaultValue) Get the value of the name property as a long . |
InetSocketAddress | getSocketAddr(String name, String defaultAddress, int defaultPort) Get the socket address for name property as a InetSocketAddress . |
String[] | getStrings(String name, String... defaultValue) Get the comma delimited values of the name property as an array of String s. |
String[] | getStrings(String name) Get the comma delimited values of the name property as an array of String s. |
String[] | getTrimmedStrings(String name) Get the comma delimited values of the name property as an array of String s, trimmed of the leading and trailing whitespace. |
void | set(String name, String value) Set the value of the name property. |
void | setBoolean(String name, boolean value) Set the value of the name property to a boolean . |
void | setClass(String name, Class> theClass, Class> xface) Set the value of the name property to the name of a theClass implementing the given interface xface . |
void | setInt(String name, int value) Set the value of the name property to an int . |
void | setSocketAddr(String name, InetSocketAddress addr) Set the socket address for the name property as a host:port . |
boolean | useHttps(Configuration conf) |
void | writeXml(OutputStream out) Write out the non-default properties in this configuration to the given OutputStream using UTF-8 encoding. |