当前位置:网站首页>Yarn容量调度器设置
Yarn容量调度器设置
2022-07-23 05:41:00 【AA赵师傅】
1)增加hive队列
默认Yarn的配置下,容量调度器只有一条Default队列。在capacity-scheduler.xml中可以配置多条队列,修改以下属性,增加hive队列。
<property>
<name>yarn.scheduler.capacity.root.queues</name>
<value>default,hive</value>
<description>
The queues at the this level (root is the root queue).
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.default.capacity</name>
<value>50</value>
<description>
default队列的容量为50%
</description>
</property>
同时为新加队列添加必要属性:
<property>
<name>yarn.scheduler.capacity.root.hive.capacity</name>
<value>50</value>
<description>
hive队列的容量为50%
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.user-limit-factor</name>
<value>1</value>
<description>
一个用户最多能够获取该队列资源容量的比例
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.maximum-capacity</name>
<value>80</value>
<description>
hive队列的最大容量
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.state</name>
<value>RUNNING</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.acl_submit_applications</name>
<value>*</value>
<description>
访问控制,控制谁可以将任务提交到该队列
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.acl_administer_queue</name>
<value>*</value>
<description>
访问控制,控制谁可以管理(包括提交和取消)该队列的任务
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.acl_application_max_priority</name>
<value>*</value>
<description>
访问控制,控制用户可以提交到该队列的任务的最大优先级
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.maximum-application-lifetime</name>
<value>-1</value>
<description>
hive队列中任务的最大生命时长
</description>
</property>
<property>
<name>yarn.scheduler.capacity.root.hive.default-application-lifetime</name>
<value>-1</value>
<description>
default队列中任务的最大生命时长
</description>
</property>2)配置hive客户端任务提交到hive队列
为方便后续hive客户端的测试和shell脚本中的任务能同时执行,我们将hive客户端的测试任务提交到hive队列,让shell脚本中的任务使用默认值,提交到default队列。
每次进入hive客户端时,执行以下命令
hive (default)> set mapreduce.job.queuename=hive;
边栏推荐
- js高阶函数
- Eth transfer times reached a one month high
- NFT数字藏品系统开发:深圳晚报《美好时光遨游记》数字藏品上线秒磬
- flex+js实现内部盒子高度跟随其中最大的高度
- 中间人攻击arp欺骗及与beef-xss联动
- Security problems of FileInfo in PHP file upload
- TypeScript 常用类型
- 页面实现 “实时数据响应” 的注意事项
- [C language] what is a function? Classification and emphasis of functions (help you quickly classify and remember functions)
- Some operations of composer
猜你喜欢

Niuke question brushing record -- MySQL

DVWA learning notes

数字藏品系统开发:企业布局元宇宙数字藏品

Compilation principle - detailed explanation of syntax analysis

How to customize JSP Tags

User defined MVC usage & addition, deletion, modification and query

第六届“蓝帽杯”全国大学生网络安全技能大赛-初赛Writeup

Man in the middle attacks ARP Spoofing and its linkage with beef XSS

window下vmware使用无线网卡nat的方式上网

Burpsuite learning notes
随机推荐
Application of higher-order functions: handwritten promise source code (I)
MySQL functions & views & import and export
MySQL索引&&执行计划
Composants web - cycle de vie des éléments personnalisés
Two sorting and one random data fetching of stored procedures
如何自定义Jsp标签
再见if-else
蚂蚁链NFT数字藏品DAPP商城系统定制开发
NFT数字藏品开发:数字藏品在未来究竟有哪些可能的应用场景?
Some operations of composer
sqli-lab第17~22关通关随笔记
CTF-web 常用软件安装及环境搭建
通用查询&分页代码
MySQL之函数&视图&导入导出
Sqli lab 1-16 notes with customs clearance
Application of higher-order functions: handwritten promise source code (4)
数字藏品系统开发:企业布局元宇宙数字藏品
phxpaxos安装编译流程
Preliminary study on DC-1 shooting range
window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常