Skip to content

Instantly share code, notes, and snippets.

@loganlinn
Last active October 23, 2018 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loganlinn/a392dbec8fd47212d5bd5da52808820c to your computer and use it in GitHub Desktop.
Save loganlinn/a392dbec8fd47212d5bd5da52808820c to your computer and use it in GitHub Desktop.
Hadoop YARN client configuration as TypeScript interface
// https://hadoop.apache.org/docs/r2.7.5/hadoop-yarn/hadoop-yarn-common/yarn-default.xml
function generateInterface() {
return ['export interface IYarnClientConfig {',
$x('/html/body/table/tbody/tr/td[1]/a').flatMap(function(a) {
return [' /**',
' * '+a.parentElement.parentElement.children[2].innerText,
' */',
" '" + a.innerHTML + "'?: string",
'']
}).join("\n"),
'}',
].join("\n")
}
function generateDefaults() {
return ['// tslint:disable:no-invalid-template-strings',
'export const YarnClientConfigDefaults: IYarnClientConfig = {',
$x('/html/body/table/tbody/tr/td[1]/a')
.map(function(a) {
return [a.innerText, a.parentElement.parentElement.children[1].innerText]
})
.filter(function(kv) { return kv[1] !== '' })
.map(function(kv) { return " '"+kv[0]+"': '"+kv[1]+"'," })
.join('\n'),
'}',
'// tslint:enable:no-invalid-template-strings',
].join("\n")
}
console.log(generateInterface() + "\n\n" + generateDefaults())
export interface IYarnClientConfig {
/**
* Factory to create client IPC classes.
*/
'yarn.ipc.client.factory.class'?: string
/**
* Factory to create server IPC classes.
*/
'yarn.ipc.server.factory.class'?: string
/**
* Factory to create serializeable records.
*/
'yarn.ipc.record.factory.class'?: string
/**
* RPC class implementation
*/
'yarn.ipc.rpc.class'?: string
/**
* The hostname of the RM.
*/
'yarn.resourcemanager.hostname'?: string
/**
* The address of the applications manager interface in the RM.
*/
'yarn.resourcemanager.address'?: string
/**
* The actual address the server will bind to. If this optional address is set, the RPC and webapp servers will bind to this address and the port specified in yarn.resourcemanager.address and yarn.resourcemanager.webapp.address, respectively. This is most useful for making RM listen to all interfaces by setting to 0.0.0.0.
*/
'yarn.resourcemanager.bind-host'?: string
/**
* The number of threads used to handle applications manager requests.
*/
'yarn.resourcemanager.client.thread-count'?: string
/**
* Number of threads used to launch/cleanup AM.
*/
'yarn.resourcemanager.amlauncher.thread-count'?: string
/**
* Retry times to connect with NM.
*/
'yarn.resourcemanager.nodemanager-connect-retries'?: string
/**
* Timeout in milliseconds when YARN dispatcher tries to drain the events. Typically, this happens when service is stopping. e.g. RM drains the ATS events dispatcher when stopping.
*/
'yarn.dispatcher.drain-events.timeout'?: string
/**
* The expiry interval for application master reporting.
*/
'yarn.am.liveness-monitor.expiry-interval-ms'?: string
/**
* The Kerberos principal for the resource manager.
*/
'yarn.resourcemanager.principal'?: string
/**
* The address of the scheduler interface.
*/
'yarn.resourcemanager.scheduler.address'?: string
/**
* Number of threads to handle scheduler interface.
*/
'yarn.resourcemanager.scheduler.client.thread-count'?: string
/**
* This configures the HTTP endpoint for Yarn Daemons.The following values are supported: - HTTP_ONLY : Service is provided only on http - HTTPS_ONLY : Service is provided only on https
*/
'yarn.http.policy'?: string
/**
* The http address of the RM web application.
*/
'yarn.resourcemanager.webapp.address'?: string
/**
* The https adddress of the RM web application.
*/
'yarn.resourcemanager.webapp.https.address'?: string
/**
*
*/
'yarn.resourcemanager.resource-tracker.address'?: string
/**
* Are acls enabled.
*/
'yarn.acl.enable'?: string
/**
* ACL of who can be admin of the YARN cluster.
*/
'yarn.admin.acl'?: string
/**
* The address of the RM admin interface.
*/
'yarn.resourcemanager.admin.address'?: string
/**
* Number of threads used to handle RM admin interface.
*/
'yarn.resourcemanager.admin.client.thread-count'?: string
/**
* Maximum time to wait to establish connection to ResourceManager.
*/
'yarn.resourcemanager.connect.max-wait.ms'?: string
/**
* How often to try connecting to the ResourceManager.
*/
'yarn.resourcemanager.connect.retry-interval.ms'?: string
/**
* The maximum number of application attempts. It's a global setting for all application masters. Each application master can specify its individual maximum number of application attempts via the API, but the individual number cannot be more than the global upper bound. If it is, the resourcemanager will override it. The default number is set to 2, to allow at least one retry for AM.
*/
'yarn.resourcemanager.am.max-attempts'?: string
/**
* How often to check that containers are still alive.
*/
'yarn.resourcemanager.container.liveness-monitor.interval-ms'?: string
/**
* The keytab for the resource manager.
*/
'yarn.resourcemanager.keytab'?: string
/**
* Flag to enable override of the default kerberos authentication filter with the RM authentication filter to allow authentication using delegation tokens(fallback to kerberos if the tokens are missing). Only applicable when the http authentication type is kerberos.
*/
'yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled'?: string
/**
* Flag to enable cross-origin (CORS) support in the RM. This flag requires the CORS filter initializer to be added to the filter initializers list in core-site.xml.
*/
'yarn.resourcemanager.webapp.cross-origin.enabled'?: string
/**
* How long to wait until a node manager is considered dead.
*/
'yarn.nm.liveness-monitor.expiry-interval-ms'?: string
/**
* Path to file with nodes to include.
*/
'yarn.resourcemanager.nodes.include-path'?: string
/**
* Path to file with nodes to exclude.
*/
'yarn.resourcemanager.nodes.exclude-path'?: string
/**
* Number of threads to handle resource tracker calls.
*/
'yarn.resourcemanager.resource-tracker.client.thread-count'?: string
/**
* The class to use as the resource scheduler.
*/
'yarn.resourcemanager.scheduler.class'?: string
/**
* The minimum allocation for every container request at the RM, in MBs. Memory requests lower than this will throw a InvalidResourceRequestException.
*/
'yarn.scheduler.minimum-allocation-mb'?: string
/**
* The maximum allocation for every container request at the RM, in MBs. Memory requests higher than this will throw a InvalidResourceRequestException.
*/
'yarn.scheduler.maximum-allocation-mb'?: string
/**
* The minimum allocation for every container request at the RM, in terms of virtual CPU cores. Requests lower than this will throw a InvalidResourceRequestException.
*/
'yarn.scheduler.minimum-allocation-vcores'?: string
/**
* The maximum allocation for every container request at the RM, in terms of virtual CPU cores. Requests higher than this will throw a InvalidResourceRequestException.
*/
'yarn.scheduler.maximum-allocation-vcores'?: string
/**
* Enable RM to recover state after starting. If true, then yarn.resourcemanager.store.class must be specified.
*/
'yarn.resourcemanager.recovery.enabled'?: string
/**
* Should RM fail fast if it encounters any errors. By defalt, it points to ${yarn.fail-fast}. Errors include: 1) exceptions when state-store write/read operations fails.
*/
'yarn.resourcemanager.fail-fast'?: string
/**
* Should YARN fail fast if it encounters any errors. This is a global config for all other components including RM,NM etc. If no value is set for component-specific config (e.g yarn.resourcemanager.fail-fast), this value will be the default.
*/
'yarn.fail-fast'?: string
/**
* Enable RM work preserving recovery. This configuration is private to YARN for experimenting the feature.
*/
'yarn.resourcemanager.work-preserving-recovery.enabled'?: string
/**
* Set the amount of time RM waits before allocating new containers on work-preserving-recovery. Such wait period gives RM a chance to settle down resyncing with NMs in the cluster on recovery, before assigning new containers to applications.
*/
'yarn.resourcemanager.work-preserving-recovery.scheduling-wait-ms'?: string
/**
* The class to use as the persistent store. If org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore is used, the store is implicitly fenced; meaning a single ResourceManager is able to use the store at any point in time. More details on this implicit fencing, along with setting up appropriate ACLs is discussed under yarn.resourcemanager.zk-state-store.root-node.acl.
*/
'yarn.resourcemanager.store.class'?: string
/**
* The maximum number of completed applications RM state store keeps, less than or equals to ${yarn.resourcemanager.max-completed-applications}. By default, it equals to ${yarn.resourcemanager.max-completed-applications}. This ensures that the applications kept in the state store are consistent with the applications remembered in RM memory. Any values larger than ${yarn.resourcemanager.max-completed-applications} will be reset to ${yarn.resourcemanager.max-completed-applications}. Note that this value impacts the RM recovery performance.Typically, a smaller value indicates better performance on RM recovery.
*/
'yarn.resourcemanager.state-store.max-completed-applications'?: string
/**
* Host:Port of the ZooKeeper server to be used by the RM. This must be supplied when using the ZooKeeper based implementation of the RM state store and/or embedded automatic failover in a HA setting.
*/
'yarn.resourcemanager.zk-address'?: string
/**
* Number of times RM tries to connect to ZooKeeper.
*/
'yarn.resourcemanager.zk-num-retries'?: string
/**
* Retry interval in milliseconds when connecting to ZooKeeper. When HA is enabled, the value here is NOT used. It is generated automatically from yarn.resourcemanager.zk-timeout-ms and yarn.resourcemanager.zk-num-retries.
*/
'yarn.resourcemanager.zk-retry-interval-ms'?: string
/**
* Full path of the ZooKeeper znode where RM state will be stored. This must be supplied when using org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore as the value for yarn.resourcemanager.store.class
*/
'yarn.resourcemanager.zk-state-store.parent-path'?: string
/**
* ZooKeeper session timeout in milliseconds. Session expiration is managed by the ZooKeeper cluster itself, not by the client. This value is used by the cluster to determine when the client's session expires. Expirations happens when the cluster does not hear from the client within the specified session timeout period (i.e. no heartbeat).
*/
'yarn.resourcemanager.zk-timeout-ms'?: string
/**
* ACL's to be used for ZooKeeper znodes.
*/
'yarn.resourcemanager.zk-acl'?: string
/**
* ACLs to be used for the root znode when using ZKRMStateStore in a HA scenario for fencing. ZKRMStateStore supports implicit fencing to allow a single ResourceManager write-access to the store. For fencing, the ResourceManagers in the cluster share read-write-admin privileges on the root node, but the Active ResourceManager claims exclusive create-delete permissions. By default, when this property is not set, we use the ACLs from yarn.resourcemanager.zk-acl for shared admin access and rm-address:random-number for username-based exclusive create-delete access. This property allows users to set ACLs of their choice instead of using the default mechanism. For fencing to work, the ACLs should be carefully set differently on each ResourceManger such that all the ResourceManagers have shared admin access and the Active ResourceManger takes over (exclusively) the create-delete access.
*/
'yarn.resourcemanager.zk-state-store.root-node.acl'?: string
/**
* Specify the auths to be used for the ACL's specified in both the yarn.resourcemanager.zk-acl and yarn.resourcemanager.zk-state-store.root-node.acl properties. This takes a comma-separated list of authentication mechanisms, each of the form 'scheme:auth' (the same syntax used for the 'addAuth' command in the ZK CLI).
*/
'yarn.resourcemanager.zk-auth'?: string
/**
* URI pointing to the location of the FileSystem path where RM state will be stored. This must be supplied when using org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore as the value for yarn.resourcemanager.store.class
*/
'yarn.resourcemanager.fs.state-store.uri'?: string
/**
* hdfs client retry policy specification. hdfs client retry is always enabled. Specified in pairs of sleep-time and number-of-retries and (t0, n0), (t1, n1), ..., the first n0 retries sleep t0 milliseconds on average, the following n1 retries sleep t1 milliseconds on average, and so on.
*/
'yarn.resourcemanager.fs.state-store.retry-policy-spec'?: string
/**
* the number of retries to recover from IOException in FileSystemRMStateStore.
*/
'yarn.resourcemanager.fs.state-store.num-retries'?: string
/**
* Retry interval in milliseconds in FileSystemRMStateStore.
*/
'yarn.resourcemanager.fs.state-store.retry-interval-ms'?: string
/**
* Local path where the RM state will be stored when using org.apache.hadoop.yarn.server.resourcemanager.recovery.LeveldbRMStateStore as the value for yarn.resourcemanager.store.class
*/
'yarn.resourcemanager.leveldb-state-store.path'?: string
/**
* The time in seconds between full compactions of the leveldb database. Setting the interval to zero disables the full compaction cycles.
*/
'yarn.resourcemanager.leveldb-state-store.compaction-interval-secs'?: string
/**
* Enable RM high-availability. When enabled, (1) The RM starts in the Standby mode by default, and transitions to the Active mode when prompted to. (2) The nodes in the RM ensemble are listed in yarn.resourcemanager.ha.rm-ids (3) The id of each RM either comes from yarn.resourcemanager.ha.id if yarn.resourcemanager.ha.id is explicitly specified or can be figured out by matching yarn.resourcemanager.address.{id} with local address (4) The actual physical addresses come from the configs of the pattern - {rpc-config}.{id}
*/
'yarn.resourcemanager.ha.enabled'?: string
/**
* Enable automatic failover. By default, it is enabled only when HA is enabled
*/
'yarn.resourcemanager.ha.automatic-failover.enabled'?: string
/**
* Enable embedded automatic failover. By default, it is enabled only when HA is enabled. The embedded elector relies on the RM state store to handle fencing, and is primarily intended to be used in conjunction with ZKRMStateStore.
*/
'yarn.resourcemanager.ha.automatic-failover.embedded'?: string
/**
* The base znode path to use for storing leader information, when using ZooKeeper based leader election.
*/
'yarn.resourcemanager.ha.automatic-failover.zk-base-path'?: string
/**
* Name of the cluster. In a HA setting, this is used to ensure the RM participates in leader election for this cluster and ensures it does not affect other clusters
*/
'yarn.resourcemanager.cluster-id'?: string
/**
* The list of RM nodes in the cluster when HA is enabled. See description of yarn.resourcemanager.ha .enabled for full details on how this is used.
*/
'yarn.resourcemanager.ha.rm-ids'?: string
/**
* The id (string) of the current RM. When HA is enabled, this is an optional config. The id of current RM can be set by explicitly specifying yarn.resourcemanager.ha.id or figured out by matching yarn.resourcemanager.address.{id} with local address See description of yarn.resourcemanager.ha.enabled for full details on how this is used.
*/
'yarn.resourcemanager.ha.id'?: string
/**
* When HA is enabled, the class to be used by Clients, AMs and NMs to failover to the Active RM. It should extend org.apache.hadoop.yarn.client.RMFailoverProxyProvider
*/
'yarn.client.failover-proxy-provider'?: string
/**
* When HA is enabled, the max number of times FailoverProxyProvider should attempt failover. When set, this overrides the yarn.resourcemanager.connect.max-wait.ms. When not set, this is inferred from yarn.resourcemanager.connect.max-wait.ms.
*/
'yarn.client.failover-max-attempts'?: string
/**
* When HA is enabled, the sleep base (in milliseconds) to be used for calculating the exponential delay between failovers. When set, this overrides the yarn.resourcemanager.connect.* settings. When not set, yarn.resourcemanager.connect.retry-interval.ms is used instead.
*/
'yarn.client.failover-sleep-base-ms'?: string
/**
* When HA is enabled, the maximum sleep time (in milliseconds) between failovers. When set, this overrides the yarn.resourcemanager.connect.* settings. When not set, yarn.resourcemanager.connect.retry-interval.ms is used instead.
*/
'yarn.client.failover-sleep-max-ms'?: string
/**
* When HA is enabled, the number of retries per attempt to connect to a ResourceManager. In other words, it is the ipc.client.connect.max.retries to be used during failover attempts
*/
'yarn.client.failover-retries'?: string
/**
* When HA is enabled, the number of retries per attempt to connect to a ResourceManager on socket timeouts. In other words, it is the ipc.client.connect.max.retries.on.timeouts to be used during failover attempts
*/
'yarn.client.failover-retries-on-socket-timeouts'?: string
/**
* The maximum number of completed applications RM keeps.
*/
'yarn.resourcemanager.max-completed-applications'?: string
/**
* Interval at which the delayed token removal thread runs
*/
'yarn.resourcemanager.delayed.delegation-token.removal-interval-ms'?: string
/**
* If true, ResourceManager will have proxy-user privileges. Use case: In a secure cluster, YARN requires the user hdfs delegation-tokens to do localization and log-aggregation on behalf of the user. If this is set to true, ResourceManager is able to request new hdfs delegation tokens on behalf of the user. This is needed by long-running-service, because the hdfs tokens will eventually expire and YARN requires new valid tokens to do localization and log-aggregation. Note that to enable this use case, the corresponding HDFS NameNode has to configure ResourceManager as the proxy-user so that ResourceManager can itself ask for new tokens on behalf of the user when tokens are past their max-life-time.
*/
'yarn.resourcemanager.proxy-user-privileges.enabled'?: string
/**
* Interval for the roll over for the master key used to generate application tokens
*/
'yarn.resourcemanager.am-rm-tokens.master-key-rolling-interval-secs'?: string
/**
* Interval for the roll over for the master key used to generate container tokens. It is expected to be much greater than yarn.nm.liveness-monitor.expiry-interval-ms and yarn.resourcemanager.rm.container-allocation.expiry-interval-ms. Otherwise the behavior is undefined.
*/
'yarn.resourcemanager.container-tokens.master-key-rolling-interval-secs'?: string
/**
* The heart-beat interval in milliseconds for every NodeManager in the cluster.
*/
'yarn.resourcemanager.nodemanagers.heartbeat-interval-ms'?: string
/**
* The minimum allowed version of a connecting nodemanager. The valid values are NONE (no version checking), EqualToRM (the nodemanager's version is equal to or greater than the RM version), or a Version String.
*/
'yarn.resourcemanager.nodemanager.minimum.version'?: string
/**
* Enable a set of periodic monitors (specified in yarn.resourcemanager.scheduler.monitor.policies) that affect the scheduler.
*/
'yarn.resourcemanager.scheduler.monitor.enable'?: string
/**
* The list of SchedulingEditPolicy classes that interact with the scheduler. A particular module may be incompatible with the scheduler, other policies, or a configuration of either.
*/
'yarn.resourcemanager.scheduler.monitor.policies'?: string
/**
* The class to use as the configuration provider. If org.apache.hadoop.yarn.LocalConfigurationProvider is used, the local configuration will be loaded. If org.apache.hadoop.yarn.FileSystemBasedConfigurationProvider is used, the configuration which will be loaded should be uploaded to remote File system first.
*/
'yarn.resourcemanager.configuration.provider-class'?: string
/**
* The setting that controls whether yarn system metrics is published on the timeline server or not by RM.
*/
'yarn.resourcemanager.system-metrics-publisher.enabled'?: string
/**
* Number of worker threads that send the yarn system metrics data.
*/
'yarn.resourcemanager.system-metrics-publisher.dispatcher.pool-size'?: string
/**
* The hostname of the NM.
*/
'yarn.nodemanager.hostname'?: string
/**
* The address of the container manager in the NM.
*/
'yarn.nodemanager.address'?: string
/**
* The actual address the server will bind to. If this optional address is set, the RPC and webapp servers will bind to this address and the port specified in yarn.nodemanager.address and yarn.nodemanager.webapp.address, respectively. This is most useful for making NM listen to all interfaces by setting to 0.0.0.0.
*/
'yarn.nodemanager.bind-host'?: string
/**
* Environment variables that should be forwarded from the NodeManager's environment to the container's.
*/
'yarn.nodemanager.admin-env'?: string
/**
* Environment variables that containers may override rather than use NodeManager's default.
*/
'yarn.nodemanager.env-whitelist'?: string
/**
* who will execute(launch) the containers.
*/
'yarn.nodemanager.container-executor.class'?: string
/**
* Number of threads container manager uses.
*/
'yarn.nodemanager.container-manager.thread-count'?: string
/**
* Number of threads used in cleanup.
*/
'yarn.nodemanager.delete.thread-count'?: string
/**
* Number of seconds after an application finishes before the nodemanager's DeletionService will delete the application's localized file directory and log directory. To diagnose Yarn application problems, set this property's value large enough (for example, to 600 = 10 minutes) to permit examination of these directories. After changing the property's value, you must restart the nodemanager in order for it to have an effect. The roots of Yarn applications' work directories is configurable with the yarn.nodemanager.local-dirs property (see below), and the roots of the Yarn applications' log directories is configurable with the yarn.nodemanager.log-dirs property (see also below).
*/
'yarn.nodemanager.delete.debug-delay-sec'?: string
/**
* Keytab for NM.
*/
'yarn.nodemanager.keytab'?: string
/**
* List of directories to store localized files in. An application's localized file directory will be found in: ${yarn.nodemanager.local-dirs}/usercache/${user}/appcache/application_${appid}. Individual containers' work directories, called container_${contid}, will be subdirectories of this.
*/
'yarn.nodemanager.local-dirs'?: string
/**
* It limits the maximum number of files which will be localized in a single local directory. If the limit is reached then sub-directories will be created and new files will be localized in them. If it is set to a value less than or equal to 36 [which are sub-directories (0-9 and then a-z)] then NodeManager will fail to start. For example; [for public cache] if this is configured with a value of 40 ( 4 files + 36 sub-directories) and the local-dir is "/tmp/local-dir1" then it will allow 4 files to be created directly inside "/tmp/local-dir1/filecache". For files that are localized further it will create a sub-directory "0" inside "/tmp/local-dir1/filecache" and will localize files inside it until it becomes full. If a file is removed from a sub-directory that is marked full, then that sub-directory will be used back again to localize files.
*/
'yarn.nodemanager.local-cache.max-files-per-directory'?: string
/**
* Address where the localizer IPC is.
*/
'yarn.nodemanager.localizer.address'?: string
/**
* Interval in between cache cleanups.
*/
'yarn.nodemanager.localizer.cache.cleanup.interval-ms'?: string
/**
* Target size of localizer cache in MB, per nodemanager. It is a target retention size that only includes resources with PUBLIC and PRIVATE visibility and excludes resources with APPLICATION visibility
*/
'yarn.nodemanager.localizer.cache.target-size-mb'?: string
/**
* Number of threads to handle localization requests.
*/
'yarn.nodemanager.localizer.client.thread-count'?: string
/**
* Number of threads to use for localization fetching.
*/
'yarn.nodemanager.localizer.fetch.thread-count'?: string
/**
* Where to store container logs. An application's localized log directory will be found in ${yarn.nodemanager.log-dirs}/application_${appid}. Individual containers' log directories will be below this, in directories named container_{$contid}. Each container directory will contain the files stderr, stdin, and syslog generated by that container.
*/
'yarn.nodemanager.log-dirs'?: string
/**
* Whether to enable log aggregation. Log aggregation collects each container's logs and moves these logs onto a file-system, for e.g. HDFS, after the application completes. Users can configure the "yarn.nodemanager.remote-app-log-dir" and "yarn.nodemanager.remote-app-log-dir-suffix" properties to determine where these logs are moved to. Users can access the logs via the Application Timeline Server.
*/
'yarn.log-aggregation-enable'?: string
/**
* How long to keep aggregation logs before deleting them. -1 disables. Be careful set this too small and you will spam the name node.
*/
'yarn.log-aggregation.retain-seconds'?: string
/**
* How long to wait between aggregated log retention checks. If set to 0 or a negative value then the value is computed as one-tenth of the aggregated log retention time. Be careful set this too small and you will spam the name node.
*/
'yarn.log-aggregation.retain-check-interval-seconds'?: string
/**
* Time in seconds to retain user logs. Only applicable if log aggregation is disabled
*/
'yarn.nodemanager.log.retain-seconds'?: string
/**
* Where to aggregate logs to.
*/
'yarn.nodemanager.remote-app-log-dir'?: string
/**
* The remote log dir will be created at {yarn.nodemanager.remote-app-log-dir}/${user}/{thisParam}
*/
'yarn.nodemanager.remote-app-log-dir-suffix'?: string
/**
* Amount of physical memory, in MB, that can be allocated for containers.
*/
'yarn.nodemanager.resource.memory-mb'?: string
/**
* Whether physical memory limits will be enforced for containers.
*/
'yarn.nodemanager.pmem-check-enabled'?: string
/**
* Whether virtual memory limits will be enforced for containers.
*/
'yarn.nodemanager.vmem-check-enabled'?: string
/**
* Ratio between virtual memory to physical memory when setting memory limits for containers. Container allocations are expressed in terms of physical memory, and virtual memory usage is allowed to exceed this allocation by this ratio.
*/
'yarn.nodemanager.vmem-pmem-ratio'?: string
/**
* Number of vcores that can be allocated for containers. This is used by the RM scheduler when allocating resources for containers. This is not used to limit the number of physical cores used by YARN containers.
*/
'yarn.nodemanager.resource.cpu-vcores'?: string
/**
* Percentage of CPU that can be allocated for containers. This setting allows users to limit the amount of CPU that YARN containers use. Currently functional only on Linux using cgroups. The default is to use 100% of CPU.
*/
'yarn.nodemanager.resource.percentage-physical-cpu-limit'?: string
/**
* NM Webapp address.
*/
'yarn.nodemanager.webapp.address'?: string
/**
* How often to monitor containers.
*/
'yarn.nodemanager.container-monitor.interval-ms'?: string
/**
* Class that calculates containers current resource utilization.
*/
'yarn.nodemanager.container-monitor.resource-calculator.class'?: string
/**
* Frequency of running node health script.
*/
'yarn.nodemanager.health-checker.interval-ms'?: string
/**
* Script time out period.
*/
'yarn.nodemanager.health-checker.script.timeout-ms'?: string
/**
* The health check script to run.
*/
'yarn.nodemanager.health-checker.script.path'?: string
/**
* The arguments to pass to the health check script.
*/
'yarn.nodemanager.health-checker.script.opts'?: string
/**
* Frequency of running disk health checker code.
*/
'yarn.nodemanager.disk-health-checker.interval-ms'?: string
/**
* The minimum fraction of number of disks to be healthy for the nodemanager to launch new containers. This correspond to both yarn.nodemanager.local-dirs and yarn.nodemanager.log-dirs. i.e. If there are less number of healthy local-dirs (or log-dirs) available, then new containers will not be launched on this node.
*/
'yarn.nodemanager.disk-health-checker.min-healthy-disks'?: string
/**
* The maximum percentage of disk space utilization allowed after which a disk is marked as bad. Values can range from 0.0 to 100.0. If the value is greater than or equal to 100, the nodemanager will check for full disk. This applies to yarn.nodemanager.local-dirs and yarn.nodemanager.log-dirs.
*/
'yarn.nodemanager.disk-health-checker.max-disk-utilization-per-disk-percentage'?: string
/**
* The minimum space that must be available on a disk for it to be used. This applies to yarn.nodemanager.local-dirs and yarn.nodemanager.log-dirs.
*/
'yarn.nodemanager.disk-health-checker.min-free-space-per-disk-mb'?: string
/**
* The path to the Linux container executor.
*/
'yarn.nodemanager.linux-container-executor.path'?: string
/**
* The class which should help the LCE handle resources.
*/
'yarn.nodemanager.linux-container-executor.resources-handler.class'?: string
/**
* The cgroups hierarchy under which to place YARN proccesses (cannot contain commas). If yarn.nodemanager.linux-container-executor.cgroups.mount is false (that is, if cgroups have been pre-configured), then this cgroups hierarchy must already exist and be writable by the NodeManager user, otherwise the NodeManager may fail. Only used when the LCE resources handler is set to the CgroupsLCEResourcesHandler.
*/
'yarn.nodemanager.linux-container-executor.cgroups.hierarchy'?: string
/**
* Whether the LCE should attempt to mount cgroups if not found. Only used when the LCE resources handler is set to the CgroupsLCEResourcesHandler.
*/
'yarn.nodemanager.linux-container-executor.cgroups.mount'?: string
/**
* Where the LCE should attempt to mount cgroups if not found. Common locations include /sys/fs/cgroup and /cgroup; the default location can vary depending on the Linux distribution in use. This path must exist before the NodeManager is launched. Only used when the LCE resources handler is set to the CgroupsLCEResourcesHandler, and yarn.nodemanager.linux-container-executor.cgroups.mount is true.
*/
'yarn.nodemanager.linux-container-executor.cgroups.mount-path'?: string
/**
* This determines which of the two modes that LCE should use on a non-secure cluster. If this value is set to true, then all containers will be launched as the user specified in yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user. If this value is set to false, then containers will run as the user who submitted the application.
*/
'yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users'?: string
/**
* The UNIX user that containers will run as when Linux-container-executor is used in nonsecure mode (a use case for this is using cgroups) if the yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users is set to true.
*/
'yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user'?: string
/**
* The allowed pattern for UNIX user names enforced by Linux-container-executor when used in nonsecure mode (use case for this is using cgroups). The default value is taken from /usr/sbin/adduser
*/
'yarn.nodemanager.linux-container-executor.nonsecure-mode.user-pattern'?: string
/**
* This flag determines whether apps should run with strict resource limits or be allowed to consume spare resources if they need them. For example, turning the flag on will restrict apps to use only their share of CPU, even if the node has spare CPU cycles. The default value is false i.e. use available resources. Please note that turning this flag on may reduce job throughput on the cluster.
*/
'yarn.nodemanager.linux-container-executor.cgroups.strict-resource-usage'?: string
/**
* This flag determines whether memory limit will be set for the Windows Job Object of the containers launched by the default container executor.
*/
'yarn.nodemanager.windows-container.memory-limit.enabled'?: string
/**
* This flag determines whether CPU limit will be set for the Windows Job Object of the containers launched by the default container executor.
*/
'yarn.nodemanager.windows-container.cpu-limit.enabled'?: string
/**
* T-file compression types used to compress aggregated logs.
*/
'yarn.nodemanager.log-aggregation.compression-type'?: string
/**
* The kerberos principal for the node manager.
*/
'yarn.nodemanager.principal'?: string
/**
* A comma separated list of services where service name should only contain a-zA-Z0-9_ and can not start with numbers
*/
'yarn.nodemanager.aux-services'?: string
/**
* No. of ms to wait between sending a SIGTERM and SIGKILL to a container
*/
'yarn.nodemanager.sleep-delay-before-sigkill.ms'?: string
/**
* Max time to wait for a process to come up when trying to cleanup a container
*/
'yarn.nodemanager.process-kill-wait.ms'?: string
/**
* The minimum allowed version of a resourcemanager that a nodemanager will connect to. The valid values are NONE (no version checking), EqualToNM (the resourcemanager's version is equal to or greater than the NM version), or a Version String.
*/
'yarn.nodemanager.resourcemanager.minimum.version'?: string
/**
* Max number of threads in NMClientAsync to process container management events
*/
'yarn.client.nodemanager-client-async.thread-pool-max-size'?: string
/**
* Max time to wait to establish a connection to NM
*/
'yarn.client.nodemanager-connect.max-wait-ms'?: string
/**
* Time interval between each attempt to connect to NM
*/
'yarn.client.nodemanager-connect.retry-interval-ms'?: string
/**
* Maximum number of proxy connections to cache for node managers. If set to a value greater than zero then the cache is enabled and the NMClient and MRAppMaster will cache the specified number of node manager proxies. There will be at max one proxy per node manager. Ex. configuring it to a value of 5 will make sure that client will at max have 5 proxies cached with 5 different node managers. These connections for these proxies will be timed out if idle for more than the system wide idle timeout period. Note that this could cause issues on large clusters as many connections could linger simultaneously and lead to a large number of connection threads. The token used for authentication will be used only at connection creation time. If a new token is received then the earlier connection should be closed in order to use the new token. This and (yarn.client.nodemanager-client-async.thread-pool-max-size) are related and should be in sync (no need for them to be equal). If the value of this property is zero then the connection cache is disabled and connections will use a zero idle timeout to prevent too many connection threads on large clusters.
*/
'yarn.client.max-cached-nodemanagers-proxies'?: string
/**
* Enable the node manager to recover after starting
*/
'yarn.nodemanager.recovery.enabled'?: string
/**
* The local filesystem directory in which the node manager will store state when recovery is enabled.
*/
'yarn.nodemanager.recovery.dir'?: string
/**
* The time in seconds between full compactions of the NM state database. Setting the interval to zero disables the full compaction cycles.
*/
'yarn.nodemanager.recovery.compaction-interval-secs'?: string
/**
* The delay time ms to unregister container metrics after completion.
*/
'yarn.nodemanager.container-metrics.unregister-delay-ms'?: string
/**
* Name or path to the Docker client.
*/
'yarn.nodemanager.docker-container-executor.exec-name'?: string
/**
*
*/
'yarn.nodemanager.aux-services.mapreduce_shuffle.class'?: string
/**
*
*/
'mapreduce.job.jar'?: string
/**
*
*/
'mapreduce.job.hdfs-servers'?: string
/**
* The kerberos principal for the proxy, if the proxy is not running as part of the RM.
*/
'yarn.web-proxy.principal'?: string
/**
* Keytab for WebAppProxy, if the proxy is not running as part of the RM.
*/
'yarn.web-proxy.keytab'?: string
/**
* The address for the web proxy as HOST:PORT, if this is not given then the proxy will run as part of the RM
*/
'yarn.web-proxy.address'?: string
/**
* CLASSPATH for YARN applications. A comma-separated list of CLASSPATH entries. When this value is empty, the following default CLASSPATH for YARN applications would be used. For Linux: $HADOOP_CONF_DIR, $HADOOP_COMMON_HOME/share/hadoop/common/*, $HADOOP_COMMON_HOME/share/hadoop/common/lib/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*, $HADOOP_YARN_HOME/share/hadoop/yarn/*, $HADOOP_YARN_HOME/share/hadoop/yarn/lib/* For Windows: %HADOOP_CONF_DIR%, %HADOOP_COMMON_HOME%/share/hadoop/common/*, %HADOOP_COMMON_HOME%/share/hadoop/common/lib/*, %HADOOP_HDFS_HOME%/share/hadoop/hdfs/*, %HADOOP_HDFS_HOME%/share/hadoop/hdfs/lib/*, %HADOOP_YARN_HOME%/share/hadoop/yarn/*, %HADOOP_YARN_HOME%/share/hadoop/yarn/lib/*
*/
'yarn.application.classpath'?: string
/**
* In the server side it indicates whether timeline service is enabled or not. And in the client side, users can enable it to indicate whether client wants to use timeline service. If it's enabled in the client side along with security, then yarn client tries to fetch the delegation tokens for the timeline server.
*/
'yarn.timeline-service.enabled'?: string
/**
* The hostname of the timeline service web application.
*/
'yarn.timeline-service.hostname'?: string
/**
* This is default address for the timeline server to start the RPC server.
*/
'yarn.timeline-service.address'?: string
/**
* The http address of the timeline service web application.
*/
'yarn.timeline-service.webapp.address'?: string
/**
* The https address of the timeline service web application.
*/
'yarn.timeline-service.webapp.https.address'?: string
/**
* The actual address the server will bind to. If this optional address is set, the RPC and webapp servers will bind to this address and the port specified in yarn.timeline-service.address and yarn.timeline-service.webapp.address, respectively. This is most useful for making the service listen to all interfaces by setting to 0.0.0.0.
*/
'yarn.timeline-service.bind-host'?: string
/**
* Defines the max number of applications could be fetched using REST API or application history protocol and shown in timeline server web ui.
*/
'yarn.timeline-service.generic-application-history.max-applications'?: string
/**
* Store class name for timeline store.
*/
'yarn.timeline-service.store-class'?: string
/**
* Enable age off of timeline store data.
*/
'yarn.timeline-service.ttl-enable'?: string
/**
* Time to live for timeline store data in milliseconds.
*/
'yarn.timeline-service.ttl-ms'?: string
/**
* Store file name for leveldb timeline store.
*/
'yarn.timeline-service.leveldb-timeline-store.path'?: string
/**
* Length of time to wait between deletion cycles of leveldb timeline store in milliseconds.
*/
'yarn.timeline-service.leveldb-timeline-store.ttl-interval-ms'?: string
/**
* Size of read cache for uncompressed blocks for leveldb timeline store in bytes.
*/
'yarn.timeline-service.leveldb-timeline-store.read-cache-size'?: string
/**
* Size of cache for recently read entity start times for leveldb timeline store in number of entities.
*/
'yarn.timeline-service.leveldb-timeline-store.start-time-read-cache-size'?: string
/**
* Size of cache for recently written entity start times for leveldb timeline store in number of entities.
*/
'yarn.timeline-service.leveldb-timeline-store.start-time-write-cache-size'?: string
/**
* Handler thread count to serve the client RPC requests.
*/
'yarn.timeline-service.handler-thread-count'?: string
/**
* Defines authentication used for the timeline server HTTP endpoint. Supported values are: simple | kerberos | #AUTHENTICATION_HANDLER_CLASSNAME#
*/
'yarn.timeline-service.http-authentication.type'?: string
/**
* Indicates if anonymous requests are allowed by the timeline server when using 'simple' authentication.
*/
'yarn.timeline-service.http-authentication.simple.anonymous.allowed'?: string
/**
* The Kerberos principal for the timeline server.
*/
'yarn.timeline-service.principal'?: string
/**
* The Kerberos keytab for the timeline server.
*/
'yarn.timeline-service.keytab'?: string
/**
* Comma separated list of UIs that will be hosted
*/
'yarn.timeline-service.ui-names'?: string
/**
* Default maximum number of retires for timeline servive client and value -1 means no limit.
*/
'yarn.timeline-service.client.max-retries'?: string
/**
* Client policy for whether timeline operations are non-fatal. Should the failure to obtain a delegation token be considered an application failure (option = false), or should the client attempt to continue to publish information without it (option=true)
*/
'yarn.timeline-service.client.best-effort'?: string
/**
* Default retry time interval for timeline servive client.
*/
'yarn.timeline-service.client.retry-interval-ms'?: string
/**
* Enable timeline server to recover state after starting. If true, then yarn.timeline-service.state-store-class must be specified.
*/
'yarn.timeline-service.recovery.enabled'?: string
/**
* Store class name for timeline state store.
*/
'yarn.timeline-service.state-store-class'?: string
/**
* Store file name for leveldb state store.
*/
'yarn.timeline-service.leveldb-state-store.path'?: string
/**
* Whether the shared cache is enabled
*/
'yarn.sharedcache.enabled'?: string
/**
* The root directory for the shared cache
*/
'yarn.sharedcache.root-dir'?: string
/**
* The level of nested directories before getting to the checksum directories. It must be non-negative.
*/
'yarn.sharedcache.nested-level'?: string
/**
* The implementation to be used for the SCM store
*/
'yarn.sharedcache.store.class'?: string
/**
* The implementation to be used for the SCM app-checker
*/
'yarn.sharedcache.app-checker.class'?: string
/**
* A resource in the in-memory store is considered stale if the time since the last reference exceeds the staleness period. This value is specified in minutes.
*/
'yarn.sharedcache.store.in-memory.staleness-period-mins'?: string
/**
* Initial delay before the in-memory store runs its first check to remove dead initial applications. Specified in minutes.
*/
'yarn.sharedcache.store.in-memory.initial-delay-mins'?: string
/**
* The frequency at which the in-memory store checks to remove dead initial applications. Specified in minutes.
*/
'yarn.sharedcache.store.in-memory.check-period-mins'?: string
/**
* The address of the admin interface in the SCM (shared cache manager)
*/
'yarn.sharedcache.admin.address'?: string
/**
* The number of threads used to handle SCM admin interface (1 by default)
*/
'yarn.sharedcache.admin.thread-count'?: string
/**
* The address of the web application in the SCM (shared cache manager)
*/
'yarn.sharedcache.webapp.address'?: string
/**
* The frequency at which a cleaner task runs. Specified in minutes.
*/
'yarn.sharedcache.cleaner.period-mins'?: string
/**
* Initial delay before the first cleaner task is scheduled. Specified in minutes.
*/
'yarn.sharedcache.cleaner.initial-delay-mins'?: string
/**
* The time to sleep between processing each shared cache resource. Specified in milliseconds.
*/
'yarn.sharedcache.cleaner.resource-sleep-ms'?: string
/**
* The address of the node manager interface in the SCM (shared cache manager)
*/
'yarn.sharedcache.uploader.server.address'?: string
/**
* The number of threads used to handle shared cache manager requests from the node manager (50 by default)
*/
'yarn.sharedcache.uploader.server.thread-count'?: string
/**
* The address of the client interface in the SCM (shared cache manager)
*/
'yarn.sharedcache.client-server.address'?: string
/**
* The number of threads used to handle shared cache manager requests from clients (50 by default)
*/
'yarn.sharedcache.client-server.thread-count'?: string
/**
* The algorithm used to compute checksums of files (SHA-256 by default)
*/
'yarn.sharedcache.checksum.algo.impl'?: string
/**
* The replication factor for the node manager uploader for the shared cache (10 by default)
*/
'yarn.sharedcache.nm.uploader.replication.factor'?: string
/**
* The number of threads used to upload files from a node manager instance (20 by default)
*/
'yarn.sharedcache.nm.uploader.thread-count'?: string
/**
* The interval that the yarn client library uses to poll the completion status of the asynchronous API of application client protocol.
*/
'yarn.client.application-client-protocol.poll-interval-ms'?: string
/**
* RSS usage of a process computed via /proc/pid/stat is not very accurate as it includes shared pages of a process. /proc/pid/smaps provides useful information like Private_Dirty, Private_Clean, Shared_Dirty, Shared_Clean which can be used for computing more accurate RSS. When this flag is enabled, RSS is computed as Min(Shared_Dirty, Pss) + Private_Clean + Private_Dirty. It excludes read-only shared mappings in RSS computation.
*/
'yarn.nodemanager.container-monitor.procfs-tree.smaps-based-rss.enabled'?: string
/**
* Defines how often NMs wake up to upload log files. The default value is -1. By default, the logs will be uploaded when the application is finished. By setting this configure, logs can be uploaded periodically when the application is running. The minimum rolling-interval-seconds can be set is 3600.
*/
'yarn.nodemanager.log-aggregation.roll-monitoring-interval-seconds'?: string
/**
* Flag to enable cross-origin (CORS) support in the NM. This flag requires the CORS filter initializer to be added to the filter initializers list in core-site.xml.
*/
'yarn.nodemanager.webapp.cross-origin.enabled'?: string
}
// tslint:disable:no-invalid-template-strings
export const YarnClientConfigDefaults: IYarnClientConfig = {
'yarn.ipc.rpc.class': 'org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC',
'yarn.resourcemanager.hostname': '0.0.0.0',
'yarn.resourcemanager.address': '${yarn.resourcemanager.hostname}:8032',
'yarn.resourcemanager.client.thread-count': '50',
'yarn.resourcemanager.amlauncher.thread-count': '50',
'yarn.resourcemanager.nodemanager-connect-retries': '10',
'yarn.dispatcher.drain-events.timeout': '300000',
'yarn.am.liveness-monitor.expiry-interval-ms': '600000',
'yarn.resourcemanager.scheduler.address': '${yarn.resourcemanager.hostname}:8030',
'yarn.resourcemanager.scheduler.client.thread-count': '50',
'yarn.http.policy': 'HTTP_ONLY',
'yarn.resourcemanager.webapp.address': '${yarn.resourcemanager.hostname}:8088',
'yarn.resourcemanager.webapp.https.address': '${yarn.resourcemanager.hostname}:8090',
'yarn.resourcemanager.resource-tracker.address': '${yarn.resourcemanager.hostname}:8031',
'yarn.acl.enable': 'false',
'yarn.admin.acl': '*',
'yarn.resourcemanager.admin.address': '${yarn.resourcemanager.hostname}:8033',
'yarn.resourcemanager.admin.client.thread-count': '1',
'yarn.resourcemanager.connect.max-wait.ms': '900000',
'yarn.resourcemanager.connect.retry-interval.ms': '30000',
'yarn.resourcemanager.am.max-attempts': '2',
'yarn.resourcemanager.container.liveness-monitor.interval-ms': '600000',
'yarn.resourcemanager.keytab': '/etc/krb5.keytab',
'yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled': 'true',
'yarn.resourcemanager.webapp.cross-origin.enabled': 'false',
'yarn.nm.liveness-monitor.expiry-interval-ms': '600000',
'yarn.resourcemanager.resource-tracker.client.thread-count': '50',
'yarn.resourcemanager.scheduler.class': 'org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler',
'yarn.scheduler.minimum-allocation-mb': '1024',
'yarn.scheduler.maximum-allocation-mb': '8192',
'yarn.scheduler.minimum-allocation-vcores': '1',
'yarn.scheduler.maximum-allocation-vcores': '32',
'yarn.resourcemanager.recovery.enabled': 'false',
'yarn.resourcemanager.fail-fast': '${yarn.fail-fast}',
'yarn.fail-fast': 'false',
'yarn.resourcemanager.work-preserving-recovery.enabled': 'true',
'yarn.resourcemanager.work-preserving-recovery.scheduling-wait-ms': '10000',
'yarn.resourcemanager.store.class': 'org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore',
'yarn.resourcemanager.state-store.max-completed-applications': '${yarn.resourcemanager.max-completed-applications}',
'yarn.resourcemanager.zk-num-retries': '1000',
'yarn.resourcemanager.zk-retry-interval-ms': '1000',
'yarn.resourcemanager.zk-state-store.parent-path': '/rmstore',
'yarn.resourcemanager.zk-timeout-ms': '10000',
'yarn.resourcemanager.zk-acl': 'world:anyone:rwcda',
'yarn.resourcemanager.fs.state-store.uri': '${hadoop.tmp.dir}/yarn/system/rmstore',
'yarn.resourcemanager.fs.state-store.retry-policy-spec': '2000, 500',
'yarn.resourcemanager.fs.state-store.num-retries': '0',
'yarn.resourcemanager.fs.state-store.retry-interval-ms': '1000',
'yarn.resourcemanager.leveldb-state-store.path': '${hadoop.tmp.dir}/yarn/system/rmstore',
'yarn.resourcemanager.leveldb-state-store.compaction-interval-secs': '3600',
'yarn.resourcemanager.ha.enabled': 'false',
'yarn.resourcemanager.ha.automatic-failover.enabled': 'true',
'yarn.resourcemanager.ha.automatic-failover.embedded': 'true',
'yarn.resourcemanager.ha.automatic-failover.zk-base-path': '/yarn-leader-election',
'yarn.client.failover-proxy-provider': 'org.apache.hadoop.yarn.client.ConfiguredRMFailoverProxyProvider',
'yarn.client.failover-retries': '0',
'yarn.client.failover-retries-on-socket-timeouts': '0',
'yarn.resourcemanager.max-completed-applications': '10000',
'yarn.resourcemanager.delayed.delegation-token.removal-interval-ms': '30000',
'yarn.resourcemanager.proxy-user-privileges.enabled': 'false',
'yarn.resourcemanager.am-rm-tokens.master-key-rolling-interval-secs': '86400',
'yarn.resourcemanager.container-tokens.master-key-rolling-interval-secs': '86400',
'yarn.resourcemanager.nodemanagers.heartbeat-interval-ms': '1000',
'yarn.resourcemanager.nodemanager.minimum.version': 'NONE',
'yarn.resourcemanager.scheduler.monitor.enable': 'false',
'yarn.resourcemanager.scheduler.monitor.policies': 'org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy',
'yarn.resourcemanager.configuration.provider-class': 'org.apache.hadoop.yarn.LocalConfigurationProvider',
'yarn.resourcemanager.system-metrics-publisher.enabled': 'false',
'yarn.resourcemanager.system-metrics-publisher.dispatcher.pool-size': '10',
'yarn.nodemanager.hostname': '0.0.0.0',
'yarn.nodemanager.address': '${yarn.nodemanager.hostname}:0',
'yarn.nodemanager.admin-env': 'MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX',
'yarn.nodemanager.env-whitelist': 'JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,HADOOP_YARN_HOME',
'yarn.nodemanager.container-executor.class': 'org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor',
'yarn.nodemanager.container-manager.thread-count': '20',
'yarn.nodemanager.delete.thread-count': '4',
'yarn.nodemanager.delete.debug-delay-sec': '0',
'yarn.nodemanager.keytab': '/etc/krb5.keytab',
'yarn.nodemanager.local-dirs': '${hadoop.tmp.dir}/nm-local-dir',
'yarn.nodemanager.local-cache.max-files-per-directory': '8192',
'yarn.nodemanager.localizer.address': '${yarn.nodemanager.hostname}:8040',
'yarn.nodemanager.localizer.cache.cleanup.interval-ms': '600000',
'yarn.nodemanager.localizer.cache.target-size-mb': '10240',
'yarn.nodemanager.localizer.client.thread-count': '5',
'yarn.nodemanager.localizer.fetch.thread-count': '4',
'yarn.nodemanager.log-dirs': '${yarn.log.dir}/userlogs',
'yarn.log-aggregation-enable': 'false',
'yarn.log-aggregation.retain-seconds': '-1',
'yarn.log-aggregation.retain-check-interval-seconds': '-1',
'yarn.nodemanager.log.retain-seconds': '10800',
'yarn.nodemanager.remote-app-log-dir': '/tmp/logs',
'yarn.nodemanager.remote-app-log-dir-suffix': 'logs',
'yarn.nodemanager.resource.memory-mb': '8192',
'yarn.nodemanager.pmem-check-enabled': 'true',
'yarn.nodemanager.vmem-check-enabled': 'true',
'yarn.nodemanager.vmem-pmem-ratio': '2.1',
'yarn.nodemanager.resource.cpu-vcores': '8',
'yarn.nodemanager.resource.percentage-physical-cpu-limit': '100',
'yarn.nodemanager.webapp.address': '${yarn.nodemanager.hostname}:8042',
'yarn.nodemanager.container-monitor.interval-ms': '3000',
'yarn.nodemanager.health-checker.interval-ms': '600000',
'yarn.nodemanager.health-checker.script.timeout-ms': '1200000',
'yarn.nodemanager.disk-health-checker.interval-ms': '120000',
'yarn.nodemanager.disk-health-checker.min-healthy-disks': '0.25',
'yarn.nodemanager.disk-health-checker.max-disk-utilization-per-disk-percentage': '90.0',
'yarn.nodemanager.disk-health-checker.min-free-space-per-disk-mb': '0',
'yarn.nodemanager.linux-container-executor.resources-handler.class': 'org.apache.hadoop.yarn.server.nodemanager.util.DefaultLCEResourcesHandler',
'yarn.nodemanager.linux-container-executor.cgroups.hierarchy': '/hadoop-yarn',
'yarn.nodemanager.linux-container-executor.cgroups.mount': 'false',
'yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users': 'true',
'yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user': 'nobody',
'yarn.nodemanager.linux-container-executor.nonsecure-mode.user-pattern': '^[_.A-Za-z0-9][-@_.A-Za-z0-9]{0,255}?[$]?$',
'yarn.nodemanager.linux-container-executor.cgroups.strict-resource-usage': 'false',
'yarn.nodemanager.windows-container.memory-limit.enabled': 'false',
'yarn.nodemanager.windows-container.cpu-limit.enabled': 'false',
'yarn.nodemanager.log-aggregation.compression-type': 'none',
'yarn.nodemanager.sleep-delay-before-sigkill.ms': '250',
'yarn.nodemanager.process-kill-wait.ms': '2000',
'yarn.nodemanager.resourcemanager.minimum.version': 'NONE',
'yarn.client.nodemanager-client-async.thread-pool-max-size': '500',
'yarn.client.nodemanager-connect.max-wait-ms': '180000',
'yarn.client.nodemanager-connect.retry-interval-ms': '10000',
'yarn.client.max-cached-nodemanagers-proxies': '0',
'yarn.nodemanager.recovery.enabled': 'false',
'yarn.nodemanager.recovery.dir': '${hadoop.tmp.dir}/yarn-nm-recovery',
'yarn.nodemanager.recovery.compaction-interval-secs': '3600',
'yarn.nodemanager.container-metrics.unregister-delay-ms': '10000',
'yarn.nodemanager.docker-container-executor.exec-name': '/usr/bin/docker',
'yarn.nodemanager.aux-services.mapreduce_shuffle.class': 'org.apache.hadoop.mapred.ShuffleHandler',
'mapreduce.job.hdfs-servers': '${fs.defaultFS}',
'yarn.timeline-service.enabled': 'false',
'yarn.timeline-service.hostname': '0.0.0.0',
'yarn.timeline-service.address': '${yarn.timeline-service.hostname}:10200',
'yarn.timeline-service.webapp.address': '${yarn.timeline-service.hostname}:8188',
'yarn.timeline-service.webapp.https.address': '${yarn.timeline-service.hostname}:8190',
'yarn.timeline-service.generic-application-history.max-applications': '10000',
'yarn.timeline-service.store-class': 'org.apache.hadoop.yarn.server.timeline.LeveldbTimelineStore',
'yarn.timeline-service.ttl-enable': 'true',
'yarn.timeline-service.ttl-ms': '604800000',
'yarn.timeline-service.leveldb-timeline-store.path': '${hadoop.tmp.dir}/yarn/timeline',
'yarn.timeline-service.leveldb-timeline-store.ttl-interval-ms': '300000',
'yarn.timeline-service.leveldb-timeline-store.read-cache-size': '104857600',
'yarn.timeline-service.leveldb-timeline-store.start-time-read-cache-size': '10000',
'yarn.timeline-service.leveldb-timeline-store.start-time-write-cache-size': '10000',
'yarn.timeline-service.handler-thread-count': '10',
'yarn.timeline-service.http-authentication.type': 'simple',
'yarn.timeline-service.http-authentication.simple.anonymous.allowed': 'true',
'yarn.timeline-service.keytab': '/etc/krb5.keytab',
'yarn.timeline-service.client.max-retries': '30',
'yarn.timeline-service.client.best-effort': 'false',
'yarn.timeline-service.client.retry-interval-ms': '1000',
'yarn.timeline-service.recovery.enabled': 'false',
'yarn.timeline-service.state-store-class': 'org.apache.hadoop.yarn.server.timeline.recovery.LeveldbTimelineStateStore',
'yarn.timeline-service.leveldb-state-store.path': '${hadoop.tmp.dir}/yarn/timeline',
'yarn.sharedcache.enabled': 'false',
'yarn.sharedcache.root-dir': '/sharedcache',
'yarn.sharedcache.nested-level': '3',
'yarn.sharedcache.store.class': 'org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore',
'yarn.sharedcache.app-checker.class': 'org.apache.hadoop.yarn.server.sharedcachemanager.RemoteAppChecker',
'yarn.sharedcache.store.in-memory.staleness-period-mins': '10080',
'yarn.sharedcache.store.in-memory.initial-delay-mins': '10',
'yarn.sharedcache.store.in-memory.check-period-mins': '720',
'yarn.sharedcache.admin.address': '0.0.0.0:8047',
'yarn.sharedcache.admin.thread-count': '1',
'yarn.sharedcache.webapp.address': '0.0.0.0:8788',
'yarn.sharedcache.cleaner.period-mins': '1440',
'yarn.sharedcache.cleaner.initial-delay-mins': '10',
'yarn.sharedcache.cleaner.resource-sleep-ms': '0',
'yarn.sharedcache.uploader.server.address': '0.0.0.0:8046',
'yarn.sharedcache.uploader.server.thread-count': '50',
'yarn.sharedcache.client-server.address': '0.0.0.0:8045',
'yarn.sharedcache.client-server.thread-count': '50',
'yarn.sharedcache.checksum.algo.impl': 'org.apache.hadoop.yarn.sharedcache.ChecksumSHA256Impl',
'yarn.sharedcache.nm.uploader.replication.factor': '10',
'yarn.sharedcache.nm.uploader.thread-count': '20',
'yarn.client.application-client-protocol.poll-interval-ms': '200',
'yarn.nodemanager.container-monitor.procfs-tree.smaps-based-rss.enabled': 'false',
'yarn.nodemanager.log-aggregation.roll-monitoring-interval-seconds': '-1',
'yarn.nodemanager.webapp.cross-origin.enabled': 'false',
}
// tslint:enable:no-invalid-template-strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment