hadoop - Hadoop纱:fair-scheduler.xml中的AclSubmitApps无效吗?

标签 hadoop acl yarn

我打算做的是限制可以将任务发送到testmonitor队列的用户或组。

在按如下所示设置AclSubmitApps之后,我仍然可以在用户testmonitor中提交配置单元任务,该任务的队列通过set mapred.job.queue.name=root.testmonitor;设置为monitor:monitor。我可以确保我的fair-scheduler.xml是由yarn重新加载的(通过更改maxRunningApps并可以在hadoop监视器网页中看到更改)。

我看不到fair-scheduler.xmlofficial document给出的示例之间的本质区别。谁能给我一些想法?非常感谢!

我的fair-scheduler.xml

<allocations>
  <queue name="default">
    <minResources>100000 mb,64vcores</minResources>
    <maxResources>12000000 mb,720vcores</maxResources>
    <maxRunningApps>50</maxRunningApps>
    <weight>1.0</weight>
    <schedulingPolicy>fifo</schedulingPolicy>
    <minSharePreemptionTimeout>300</minSharePreemptionTimeout>
  </queue>

  <queue name="testmonitor">
    <minResources>12000000 mb, 600vcores</minResources>
    <maxResources>20000000 mb, 720vcores</maxResources>
    <maxRunningApps>5</maxRunningApps>
    <weight>2.0</weight>
    <schedulingPolicy>fair</schedulingPolicy>
    <minSharePreemptionTimeout>300</minSharePreemptionTimeout>
    <aclSubmitApps>testmonitor</aclSubmitApps>
  </queue>

  <userMaxAppsDefault>50</userMaxAppsDefault>
  <fairSharePreemptionTimeout>6000</fairSharePreemptionTimeout>
  <defaultQueueSchedulingPolicy>fifo</defaultQueueSchedulingPolicy>
</allocations>

监视正在运行的任务:

关于公平调度程序的官方文件示例:
<?xml version="1.0"?>
<allocations>
  <queue name="sample_queue">
    <minResources>10000 mb,0vcores</minResources>
    <maxResources>90000 mb,0vcores</maxResources>
    <maxRunningApps>50</maxRunningApps>
    <weight>2.0</weight>
    <schedulingPolicy>fair</schedulingPolicy>
    <queue name="sample_sub_queue">
      <aclSubmitApps>charlie</aclSubmitApps>
      <minResources>5000 mb,0vcores</minResources>
    </queue>
  </queue>

  <user name="sample_user">
    <maxRunningApps>30</maxRunningApps>
  </user>
  <userMaxAppsDefault>5</userMaxAppsDefault>

  <queuePlacementPolicy>
    <rule name="specified" />
    <rule name="primaryGroup" create="false" />
    <rule name="default" />
  </queuePlacementPolicy>
</allocations>

最佳答案

将根队列添加为父队列。

<queue name="root">
<aclSubmitApps> </aclSubmitApps>
<queue name="queue1">
    <minResources>10000mb,10vcores</minResources>
    <maxResources>30000mb,30vcores</maxResources>
    <maxRunningApps>10</maxRunningApps>
    <weight>2.0</weight>
    <schedulingMode>fair</schedulingMode>
    <aclAdministerApps>User1</aclAdministerApps>
    <aclSubmitApps>User1</aclSubmitApps>
</queue> 
</queue>

关于hadoop - Hadoop纱:fair-scheduler.xml中的AclSubmitApps无效吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26462082/

相关文章:

hadoop - 难道真正的Hadoop框架不适合实时运行?

apache-spark - 为什么在 hadoop 上使用 H2O 时在 Yarn 中看不到具体的任务执行?

java - 使用 Java 的 AclFileAttributeView 获取通用文件夹权限(如 GENERIC_ALL)

hadoop - 在运行映射作业时,根据请求杀死了容器

hadoop - Hadoop Configuration()对象未获取/etc/hadoop/conf/core-site.xml

hadoop - Non DFS Used 到底是什么意思?

authentication - HBase 一直在做简单的身份验证

Symfony2 : creating a new SecurityIdentity

c# - 以编程方式允许 Windows 服务解密配置文件

hadoop - 执行oozie工作- yarn 问题