向 YARN 提交 spark 时出错 "unknown queue: root.default"

Error "unknown queue: root.default" when spark-submitting to YARN

我正在通过 Airflow 和 SparkSubmitOperator 向新建的 YARN 集群提交一个简单的 Pyspark wordcount 作业。作业命中 YARN,我可以在 ResourceManager UI 中看到它,但失败并出现此错误:

"Diagnostics: Application application_1582063076991_0002 submitted by user root to unknown queue: root.default"

*User:  root
Name:   PySpark Wordcount
Application Type:   SPARK
Application Tags:   
YarnApplicationState:   FAILED
Queue:  root.default
FinalStatus Reported by AM: FAILED
Started:    Fri Feb 21 08:01:25 +1100 2020
Elapsed:    0sec
Tracking URL:   History
Diagnostics:    Application application_1582063076991_0002 submitted by user root to unknown queue: root.default*

default.root 队列似乎确实存在:

*Application Queues
  Legend:CapacityUsedUsed (over capacity)Max Capacity
      .root    0.0% used
          ..Queue: default    0.0% used


'default' Queue Status
Queue State:    RUNNING
Used Capacity:  0.0%
Configured Capacity:    100.0%
Configured Max Capacity:    100.0%
Absolute Used Capacity: 0.0%
Absolute Configured Capacity:   100.0%
Absolute Configured Max Capacity:   100.0%
Used Resources: <memory:0, vCores:0>
Num Schedulable Applications:   0
Num Non-Schedulable Applications:   0
Num Containers: 0
Max Applications:   10000
Max Applications Per User:  10000
Max Application Master Resources:   <memory:3072, vCores:1>
Used Application Master Resources:  <memory:0, vCores:0>
Max Application Master Resources Per User:  <memory:3072, vCores:1>
Configured Minimum User Limit Percent:  100%
Configured User Limit Factor:   1.0
Accessible Node Labels: *
Preemption: disabled*

我在这里错过了什么?谢谢

使用队列名称 default 提交。

资源管理器中的 root 仅用于以分层形式对队列进行分组。