Created 05-02-2017 01:03 PM
I need a way to update our YARN Capacity Scheduler Queues from a script.
Currently, we have some processes that run at night, and sometimes the queues are not set properly. I need the script to be able to update the queues.
Does the YARN CLI support this?
If not, does the Ambari CLI? And if so, how?
Thanks!
Created 05-02-2017 02:15 PM
You can use ambari REST API to update YARN capacity scheduler queues. An example is given in the following link:
https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html
Created 05-02-2017 02:15 PM
You can use ambari REST API to update YARN capacity scheduler queues. An example is given in the following link:
https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html
Created 05-02-2017 06:24 PM
One note:
The example linked lists "tag":"version14534007568115" in the JSON sent to Ambari.
Through trial-and-error, it looks like this must include a valid timestamp AFTER the most recent change to the queue configs, otherwise the command fails with a huge stack trace that isn't clear.