For each rm-id, specify host:port of the RM web application corresponds to. You do not need this if you set yarn.http.policy to HTTPS_ONLY. If set, overrides the hostname set in yarn.resourcemanager.hostname.rm-id.
为每个rm-id指定用于RMweb应用通讯的主机:端口。如果你设置了yarn.http.policy to HTTPS_ONLY那就没必要设置了。如果设置了将覆盖yarn.resourcemanager.hostname.rm-id的设置
yarn.resourcemanager.webapp.https.address.rm-id
For each rm-id, specify host:port of the RM https web application corresponds to. You do not need this if you set yarn.http.policy to HTTP_ONLY. If set, overrides the hostname set in yarn.resourcemanager.hostname.rm-id.
为每个rm-id指定用于RM https web应用通讯的主机:端口。如果你设置了yarn.http.policy to HTTPS_ONLY那就没必要设置了。如果设置了将覆盖yarn.resourcemanager.hostname.rm-id的设置
yarn.resourcemanager.ha.id
Identifies the RM in the ensemble. This is optional; however, if set, admins have to ensure that all the RMs have their own IDs in the config.
定义一个RM的集合ID.这是可选的;然而,如果设置了,管理员将要确保所有的RM所有自己的ID
yarn.resourcemanager.ha.automatic-failover.enabled
Enable automatic failover; By default, it is enabled only when HA is enabled.
故障切换激活;默认的,在HA激活下可用。
yarn.resourcemanager.ha.automatic-failover.embedded
Use embedded leader-elector to pick the Active RM, when automatic failover is enabled. By default, it is enabled only when HA is enabled.
当自动故障切换可用时,使用内嵌的选举器来选择活跃RM。默认的,在HA激活下可用。
yarn.resourcemanager.cluster-id
Identifies the cluster. Used by the elector to ensure an RM doesn’t take over as Active for another cluster.
定义集群的ID。被选举器使用确保RM不会在其他集群中接管称为活跃RM
yarn.client.failover-proxy-provider
The class to be used by Clients, AMs and NMs to failover to the Active RM.
这个类用于将客户端、AMs和NMs转移到活跃的RM
yarn.client.failover-max-attempts
The max number of times FailoverProxyProvider should attempt failover.
尝试故障切换的最大尝试次数。
yarn.client.failover-sleep-base-ms
The sleep base (in milliseconds) to be used for calculating the exponential delay between failovers.
yarn.client.failover-sleep-max-ms
The maximum sleep time (in milliseconds) between failovers.
故障切换之间的最大休眠时间
yarn.client.failover-retries
The number of retries per attempt to connect to a ResourceManager.
每个尝试连接RM的重连次数
yarn.client.failover-retries-on-socket-timeouts
The number of retries per attempt to connect to a ResourceManager on socket timeouts.
每个尝试连接RM的重连次数的socket超时
Sample configurations(配置例子)
Here is the sample of minimal setup for RM failover.
<property> <name>yarn.resourcemanager.ha.enabled</name> <value>true</value> </property> <property> <name>yarn.resourcemanager.cluster-id</name> <value>cluster1</value> </property> <property> <name>yarn.resourcemanager.ha.rm-ids</name> <value>rm1,rm2</value> </property> <property> <name>yarn.resourcemanager.hostname.rm1</name> <value>master1</value> </property> <property> <name>yarn.resourcemanager.hostname.rm2</name> <value>master2</value> </property> <property> <name>yarn.resourcemanager.webapp.address.rm1</name> <value>master1:8088</value> </property> <property> <name>yarn.resourcemanager.webapp.address.rm2</name> <value>master2:8088</value> </property> <property> <name>yarn.resourcemanager.zk-address</name> <value>zk1:2181,zk2:2181,zk3:2181</value> </property>
Admin commands(管理员命令)