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:
[-getServiceState serviceId]
[-checkHealth <serviceId]
[-help <command>]
when serviceID is
rm-id
.