We have been using the ResourceManager (RM) REST APIs (Apache Hadoop 2.7.x) to fetch different details like running application details, scheduler info, etc in our Java code.
For example, the below request gives the scheduler details:
But how can my Java code get the above details if the RM is in HA mode and the code is not sure which host is the active RM?
Please help.