Support Questions

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

spark submit Exception unknown queue

avatar
Rising Star
spark-submit --num-executors 10 --executor-memory 2g --master yarn --deploy-mode cluster --queue root.opt.iliak --conf spark.yarn.submit.waitAppCompletion=false --files run.py 

gives error

Exception in thread "main" org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_1529419461764_0004 to YARN : Application application_1529419461764_0004 submitted by user iliak to unknown queue: root.opt.iliak

while submiting to queue "default" works (root.defult queue exists)

13 REPLIES 13

avatar
  • root.bt.user1 (here the leaf queue is user1) , yes we can disable the leaf queue. Option will be available in ranger (Since you are using ranger)

avatar
Rising Star

where exectly?

avatar

I think this is completely off from what it is described in the question description. If disabling queue is your current goal.

Goto Ranger admin UI -> Service Manager -> Click Yarn -> Create/edit existing policy. There you will find toggle to enable/disable, Choose disable.

78489-ranger.png

avatar
Rising Star

I found a working dirty solution, added the queues as follow:

  • root.bt.bt_user1
  • root.bt.bt_user2
  • root.bt.bt_user3
  • root.opt.opt_user1
  • root.opt.opt_user2
  • root.opt.opt_user3

and updated the submission script to match it