Automatic ResourceManager failover is enabled by default, so it must be disabled for manual failover.
To configure manual failover for ResourceManager HA, add the
yarn.resourcemanager.ha.automatic-failover.enabled
configuration property to the etc/hadoop/conf/yarn-site.xml file,
and set its value to "false":
<property>
<name>yarn.resourcemanager.ha.automatic-failover.enabled</name>
<value>false</value>
</property>

