4

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.

Rakesh Rakshit
  • 592
  • 2
  • 13

1 Answers1

1

You shouldn't have to do anything because the RMs should redirect automatically. It was broken for a while but YARN-2605 shows it fixed in 2.7.1. However, you might still hit YARN-4820 (which was fixed in 2.8.0 but not 2.7.1) if you are calling the APIs with query parameters.

tk421
  • 5,775
  • 6
  • 23
  • 34