临时解决方法
set mapred.job.queue.name=root.root;
在配置文件中解决
修改yarn-site.yml文件
<property>
<description>The class to use as the resource scheduler.</description>
<name>yarn.resourcemanager.scheduler.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler</value>
</property>
参考链接:
https://blog.csdn.net/wenchun001/article/details/128975141
https://blog.csdn.net/fengfengchen95/article/details/91987761