Yarn 配置文件fair-scheduler.xml含义
例如:
<?xml version&#61;"1.0"?>
<allocations>
<!-- users max running apps -->
<userMaxAppsDefault>30</userMaxAppsDefault>
<!-- 定义队列 -->
<queue name&#61;"root"><!-- 最小使用资源&#xff1a;512Mb内存&#xff0c;4个处理器核心 --><minResources>512mb,4vcores</minResources><!-- 最大使用资源&#xff1a;10G内存&#xff0c;100个处理器核心 --><maxResources>102400mb,100vcores</maxResources><!-- 最大可同时运行的app数量&#xff1a;100--><maxRunningApps>100</maxRunningApps><!-- weight:资源池权重 --><weight>1.0</weight><!-- 调度模式&#xff1a;fair-scheduler --><schedulingMode>fair</schedulingMode><!-- 允许提交任务的用户名和组&#xff0c;格式为&#xff1a;用户名 用户组 --><!-- 当有多个用户时候&#xff0c;格式为&#xff1a;用户名1,用户名2 用户名1所属组,用户名2所属组 --><aclSubmitApps> </aclSubmitApps><!-- 允许管理任务的用户名和组&#xff0c;格式同上 --><aclAdministerApps> </aclAdministerApps><queue name&#61;"default"><minResources>512mb,4vcores</minResources><maxResources>30720mb,30vcores</maxResources><maxRunningApps>100</maxRunningApps><schedulingMode>fair</schedulingMode><weight>1.0</weight><!-- 所有的任务如果不指定任务队列&#xff0c;都提交到default队列里面来 --><aclSubmitApps>*</aclSubmitApps></queue><queue name&#61;"hadoop"><minResources>512mb,4vcores</minResources><maxResources>20480mb,20vcores</maxResources><maxRunningApps>100</maxRunningApps><schedulingMode>fair</schedulingMode><weight>2.0</weight><aclSubmitApps>hadoop hadoop</aclSubmitApps><aclAdministerApps>hadoop hadoop</aclAdministerApps></queue><queue name&#61;"develop"><minResources>512mb,4vcores</minResources><maxResources>20480mb,20vcores</maxResources><maxRunningApps>100</maxRunningApps><schedulingMode>fair</schedulingMode><weight>1</weight><aclSubmitApps>develop develop</aclSubmitApps><aclAdministerApps>develop develop</aclAdministerApps></queue><queue name&#61;"test1"><minResources>512mb,4vcores</minResources><maxResources>20480mb,20vcores</maxResources><maxRunningApps>100</maxRunningApps><schedulingMode>fair</schedulingMode><weight>1.5</weight><aclSubmitApps>test1,hadoop,develop test1</aclSubmitApps><aclAdministerApps>test1 group_businessC,supergroup</aclAdministerApps></queue>
</queue>
</allocations>