大醉和尚  
qq:3262641915,如有问题,欢迎讨论.

cat /etc/hadoop/3.1.4.0-315/0/fair-scheduler.xml

fair-scheduler.xml

<?xml version="1.0"?>
<allocations>
  
  <userMaxAppsDefault>20</userMaxAppsDefault>
  <queueMaxAMShareDefault>0.6</queueMaxAMShareDefault>

  <queue name="default">
    <minResources>512 mb,0vcores</minResources>
    <maxResources>40960 mb,12vcores</maxResources>
    <schedulingPolicy>fair</schedulingPolicy>
    <maxRunningApps>6</maxRunningApps>
    <maxAMShare>0.5</maxAMShare>
    <weight>1.0</weight>
  </queue>

  <queue name="hive_job">
     <minResources>512 mb, 0 vcores</minResources>
     <maxResources>40960 mb, 14 vcores</maxResources>
     <schedulingPolicy>fifo</schedulingPolicy>
     <maxRunningApps>5</maxRunningApps>
     <maxAMShare>0.8</maxAMShare>
     <weight>3.0</weight>
  </queue>

  <queue name="real_time_1">
     <minResources>2048 mb, 2 vcores</minResources>
     <maxResources>3072 mb, 2 vcores</maxResources>
     <schedulingPolicy>fifo</schedulingPolicy>
     <maxAMShare>1.0</maxAMShare>
     <weight>5.0</weight>
  </queue>

  <queuePlacementPolicy>
    <rule name="specified" />
    <rule name="default" />
  </queuePlacementPolicy>
</allocations>
posted on 2021-11-26 13:45  大醉和尚  阅读(12)  评论(0编辑  收藏  举报