How to use ResourceManager REST API when ResourceManager is HA enabled?

Viewed 817

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:

GET http://rm_http_address:port/ws/v1/cluster/scheduler

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.

1 Answers
Related