Use the yarn rmadmin tool to Administer ResourceManager High Availability
You can use yarn rmadmin in the command line to manage your ResourceManager HA deployment.
yarn rmadmin has the following options related to ResourceManager high availability:
[-transitionToActive serviceId] [-transitionToStandby serviceId] [-getServiceState serviceId] [-checkHealth <serviceId] [-help <command>]
when serviceID is