Job hangs when mapreduce.job.queuename is specified and the queue has 0 of any resource (vcores / memory / other)
In this scenario, the job should be immediately rejected upon submission since the specified queue cannot serve the resource needs of the submitted job.
Command to run:
bin/yarn jar "./share/hadoop/mapreduce/hadoop-mapreduce-examples-$MY_HADOOP_VERSION.jar" pi -Dmapreduce.job.queuename=sample_queue 1 1000;
fair-scheduler.xml queue config (excerpt):
Diagnostic message from the web UI:
Wed May 02 06:35:57 -0700 2018] Application is added to the scheduler and is not yet activated. (Resource request: <memory:1536, vCores:1> exceeds current queue or its parents maximum resource allowed).