I see a queue in the yarn configuration file that I want to delete:
<property>
<name>yarn.scheduler.capacity.root.queues</name>
<value>a,b,c</value>
<description>The queues at the this level (root is the root queue).
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.a.queues</name>
<value>a1,a2</value>
<description>The queues at the this level (root is the root queue).
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.b.queues</name>
<value>b1,b2,b3</value>
<description>The queues at the this level (root is the root queue).
</description>
</property>
Say I want to remove queue c
. I remove c
from the list under the line <name>yarn.scheduler.capacity.root.queues</name>
so that line looks like this:
<value>a,b,c</value>
Then I go to the command line and run yarn rmadmin -refreshQueues
.
But I get the following error message:
Caused by java.io.IOException: c cannot be found during refresh!`
I'm trying to delete the queue c
. How do I delete it?
I noticed here it says that
Note: Queues cannot be deleted, only addition of new queues is supported - the updated queue configuration should be a valid one i.e. queue-capacity at each level should be equal to 100%.
...so, how do I delete a queue if I don't need it anymore?
thanks.