选择高可用的主机,新的一台:
点运行结束后,会看到实例会多出一个备用的节点:
官网:yarn的HA
https://docs.cloudera.com/documentation/enterprise/6/6.2/topics/cdh_hag_rm_ha_config.html#xd_583c10bfdbd326ba--43d5fd93-1410993f8c2--7f77
#手动切换活动RM
yarn rmadmin -transitionToActive serviceId
#where serviceId is the rm-id, rm-id在yarn-site.xml里
<name>yarn.resourcemanager.ha.rm-ids</name>
<value>rm1,rm2</value>
[-transitionToActive serviceId]
[-transitionToStandby serviceId]
[-getServiceState serviceId]
[-checkHealth <serviceId]
[-help <command>]