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

We used the ResourceManager (RM) REST API (Apache Hadoop 2.7.x) to get various details like running application details, scheduler information, etc. in our Java code.

For example, the query below provides the details of the scheduler:

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

But how can my Java code get the above data if RM is in HA mode and the code is not sure which host is the active RM?

Please, help.

+3


source to share


1 answer


You don't need to do anything, because the RMs should be automatically redirected. It was broken for a while, but YARN-2605 shows that it is fixed in 2.7.1. However, you can still push YARN-4820 (which was fixed in 2.8.0, but not 2.7.1) if you call the API with query parameters.



+1


source







All Articles