Minimum Settings for Automatic ResourceManager HA Configuration
Consider the minimum yarn-site.xml
configuration settings for
ResourceManager HA with automatic failover.
The minimum yarn-site.xml
configuration settings for ResourceManager HA with automatic
failover are as follows:
<property> <name>yarn.resourcemanager.ha.enabled</name> <value>true</value> </property> <property> <name>yarn.resourcemanager.ha.rm-ids</name> <value>rm1,rm2</value> </property> <property> <name>yarn.resourcemanager.hostname.rm1</name> <value>192.168.1.9</value> </property> <property> <name>yarn.resourcemanager.hostname.rm2</name> <value>192.168.1.10</value> </property> <property> <name>yarn.resourcemanager.recovery.enabled</name> <value>true</value> </property> <property> <name>yarn.resourcemanager.store.class</name> <value>org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore</value> </property> <property> <name>yarn.resourcemanager.zk-address</name> <value>192.168.1.9:2181,192.168.1.10:2181</value> <description>For multiple zk services, separate them with comma</description> </property> <property> <name>yarn.resourcemanager.cluster-id</name> <value>yarn-cluster</value> </property>