当前位置:网站首页>数仓4.0笔记——数仓环境搭建—— Yarn配置
数仓4.0笔记——数仓环境搭建—— Yarn配置
2022-07-23 05:41:00 【丝丝呀】
1 增加ApplicationMaster资源比例
容量调度器对每个资源队列中同时运行的Application Master占用的资源进行了限制,该限制通过yarn.scheduler.capacity.maximum-am-resource-percent参数实现,其默认值是0.1,表示每个资源队列上Application Master最多可使用的资源为该队列总资源的10%,目的是防止大部分资源都被Application Master占用,而导致Map/Reduce Task无法执行。
生产环境该参数可使用默认值。但学习环境,集群资源总数很少,如果只分配10%的资源给Application Master,则可能出现,同一时刻只能运行一个Job的情况,因为一个Application Master使用的资源就可能已经达到10%的上限了。故此处可将该值适当调大。
在hadoop102的/opt/module/hadoop-3.1.3/etc/hadoop/capacity-scheduler.xml文件中修改如下参数值
[[email protected] hadoop]$ vim capacity-scheduler.xml
<property>
<name>yarn.scheduler.capacity.maximum-am-resource-percent</name>
<value>0.8</value>
</property

分发:[[email protected] hadoop]$ xsync capacity-scheduler.xml

目前的状态

关闭正在运行的任务,重新启动yarn集群
[[email protected] ~]$ stop-yarn.sh
[[email protected] ~]$ start-yarn.sh

再来web端查看,变成了80,说明修改成功啦
边栏推荐
- MySQL account management & four engines & database and table building
- Using dynamic programming to solve the longest growing subsequence problem
- Some operations of composer
- Burpsuite learning notes
- 忽略埋点记录的ResizeObserver - loop limit exceeded
- js中类数组对象以及类数组转换的方法(ES6, ES5)
- 文件上传漏洞原理
- $attrs中的对象没有变化,但触发了watch监听?
- 中间人攻击arp欺骗及与beef-xss联动
- MySQL之函数&视图&导入导出
猜你喜欢
随机推荐
General Query & paging code
Web component - the lifecycle of a custom element
Inheritance mode of JS
TypeScript介绍
蚂蚁链NFT数字藏品DAPP商城系统定制开发
简单实现矩形面积块
my_ Implementation of strcpy (classic, simple, practical, collection)
The attribution of branch and loop statements in C language
Analysis of two-part search method or half search method of C language (classic example, classic analysis)
DVWA学习笔记
基于el-table的树形表格及js-xlsx实现下载excel功能(二)
MySQL add, delete, modify, query & advanced query statements
自定义MVC的使用&增删改查
自定义MVC(下)
Bank of Indonesia governor said the country is actively exploring encrypted assets
Typescript common types
文件上传漏洞常见绕过方式
xtu-ctf Challenges-Reverse 1、2
sqli-lab第17~22关通关随笔记
Vite x sigma creates designer specific I18N plug-ins









