With FairScheduler, I could configure queues by updating fair-scheduler.xml.
I could add new queues or update resources for specific queues by updating fair-scheduler.xml without restarting resource manager.
However, althouth queues are removed from fair-scheduler.xml, I could still see the removed queues in RM UI.
Is there anybody knowing how to remove queues?
We have added a new feature that will automatically remove unused dynamic queues from the RM and also make sure all the static configured queues (via the xml file) are up to date. This is triggered on each load of the scheduler config. See YARN-8191 for all the details.
This will come in CDH in a future release.
Deleting from the UI etc requires code changes. As you can see in YARN-8191 the change hook in deep in the update code. We are not backporting this into C5. You will have to wait until we get a future release out with it included.
The scheduler xml file is the standard configuration file. If you use CM to manage your queues CM generates it for you. Just updating the xml is not enough for this feature.