Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

CLI command(s) to update YARN Capacity Scheduler Queues?

avatar
Super Collaborator

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!

1 ACCEPTED SOLUTION

avatar
Super Guru

@Zack Riesland

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

View solution in original post

2 REPLIES 2

avatar
Super Guru

@Zack Riesland

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

avatar
Super Collaborator

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.