Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

Stella981
• 阅读 695

YARN:资源调度平台

YARN参数解读与调优

yarn-site.xml文件默认参数:
http://hadoop.apache.org/docs/r2.7.3/hadoop-yarn/hadoop-yarn-common/yarn-default.xml

参数

  默认值  

说明

yarn.resourcemanager.address

  ${yarn.resourcemanager.hostname}:8032

   ResourceManager 对客户端暴露的地址

yarn.resourcemanager.scheduler.address  

${yarn.resourcemanager.hostname}:8030

    ResourceManager 对ApplicationMaster暴露的访问地址2

yarn.resourcemanager.resource-tracker.address

   ${yarn.resourcemanager.hostname}:8031

   ResourceManager 对NodeManager暴露的地址

yarn.resourcemanager.admin.address  

  ${yarn.resourcemanager.hostname}:8033

    ResourceManager 对管理员暴露的访问地址

yarn.resourcemanager.webapp.address  

${yarn.resourcemanager.hostname}:8088   

  ResourceManager对外WebUI地址

yarn.resourcemanager.scheduler.class

capacity.CapacityScheduler

启用的资源调度器主类,目前可用的有FIFO、Capacity Scheduler和Fair Scheduler

yarn.resourcemanager.resource-tracker.client.thread-count

50  

  处理来自NodeManager的RPC请求的Handler数目

yarn.resourcemanager.scheduler.client.thread-count

50 

处理来自ApplicationMaster的RPC请求的Handler数目

yarn.scheduler.minimum-allocation-mb

1024    

单个可申请的最小内存资源量

yarn.scheduler.maximum-allocation-mb 

   8192

单个可申请的最大内存资源量

yarn.scheduler.minimum-allocation-vcores

   1 

单个可申请的最小虚拟CPU个数

yarn.scheduler.maximum-allocation-vcores

  32 

    单个可申请的最大虚拟CPU个数

yarn.resourcemanager.nodemanagers.heartbeat-interval-ms

  1000(毫秒)   

  NodeManager心跳间隔

capacity.CapacityScheduler的完整名称: org.apache.Hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler

NodeManager相关配置参数

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

mapred-site.xml

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

参数调优

参照
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/index.html

 Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

单击“Command Line Installation”超链接后的PDF图标,即可打开HDP安装文档。

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

单击“1.10. Determining HDP Memory Configuration Settings”条目,跳转到对应页面

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

单击“Download Companion Files”连接,可以看到两条命令

wget http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/
hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
tar zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz

[root@node1 ~]# wget http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz--2018-11-26 22:11:09--  http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
Resolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 13.33.231.53, 13.33.231.93, 13.33.231.120, ...
Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|13.33.231.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85173 (83K) [application/x-tar]
Saving to: ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’

100%[======================================================================================>] 85,173       313KB/s   in 0.3s   

2018-11-26 22:11:10 (313 KB/s) - ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’ saved [85173/85173]

[root@node1 ~]#

 

[root@node1 ~]# tar -zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
hdp_manual_install_rpm_helper_files-2.6.0.3.8/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-log4j.properties.template
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-exec-log4j.properties.template
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/nagios.cfg-centos
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-hosts.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-commands.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-hostgroups.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-servicegroups.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-services.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/nagios.cfg-suse
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_resourcemanager_nodes_percentage.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_name_dir_status.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_datanode_storage.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_mapred_local_dir_used.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_aggregate.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hdfs_blocks.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_rpcq_latency.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_webui.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_oozie_status.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_webhcat_status.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hdfs_capacity.php
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_cpu.pl
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hive_metastore_status.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_nodemanager_health.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-metrics2.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/capacity-scheduler.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-policy.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/core-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/yarn-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/mapred-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/container-executor.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/yarn-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/health_check
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/mapred-queue-acls.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/commons-logging.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-metrics2.properties-GANGLIA
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/log4j.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hdfs-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-site-template.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env-template.cmd
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env-template.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/hdp-gmetad
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/hdp-gmond
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkGmetad.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startRrdcached.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkGmond.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmond.init
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/rrdcachedLib.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmetad.init
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startGmond.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaEnv.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startGmetad.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/rrd.py
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmondLib.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/setupGanglia.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaClusters.conf
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopGmetad.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/teardownGanglia.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaLib.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopGmond.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopRrdcached.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkRrdcached.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmetadLib.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/zookeeper-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/configuration.xsl
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/log4j.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/zoo.cfg
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/pig-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/pig.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/log4j.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-log4j.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/adminusers.txt
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/hadoop-config.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-default.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-policy.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/regionservers
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.master-GANGLIA
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.regionservers-GANGLIA
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/log4j.properties
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/webhcat-env.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/webhcat-site.xml
hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/
hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/directories.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/yarn-utils.py
hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/usersAndGroups.sh
hdp_manual_install_rpm_helper_files-2.6.0.3.8/readme.txt
hdp_manual_install_rpm_helper_files-2.6.0.3.8/HDP-CHANGES.txt

Hadoop 系列YARN:资源调度平台(YARN参数解读与调优)

       如果节点有4核8G内存1块硬盘,该节点同时安装HBase,通过下面命令即可获得优化参数

 

[root@nb0 scripts]# python yarn-utils.py -c 4 -m 8 -d 1 -k True Using cores=4 memory=8GB disks=1 hbase=True Profile: cores=4 memory=5120MB reserved=3GB usableMem=5GB disks=1 Num Container=3 Container Ram=1536MB Used Ram=4GB Unused Ram=3GB yarn.scheduler.minimum-allocation-mb=1536 yarn.scheduler.maximum-allocation-mb=4608 yarn.nodemanager.resource.memory-mb=4608 mapreduce.map.memory.mb=1536 mapreduce.map.java.opts=-Xmx1228m mapreduce.reduce.memory.mb=3072 mapreduce.reduce.java.opts=-Xmx2457m yarn.app.mapreduce.am.resource.mb=3072 yarn.app.mapreduce.am.command-opts=-Xmx2457m mapreduce.task.io.sort.mb=614

选项说明

选项

描述

-c

每一个客户机的核数目

-m

每一个客户机拥有的内存总数

-d

每一个客户机拥有的磁盘数目

-k

如果Hbase安装了为”True”,否则为”False”

点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Jacquelyn38 Jacquelyn38
2年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
Wesley13 Wesley13
2年前
Java获得今日零时零分零秒的时间(Date型)
publicDatezeroTime()throwsParseException{    DatetimenewDate();    SimpleDateFormatsimpnewSimpleDateFormat("yyyyMMdd00:00:00");    SimpleDateFormatsimp2newS
Wesley13 Wesley13
2年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Wesley13 Wesley13
2年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Stella981 Stella981
2年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Wesley13 Wesley13
2年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
3个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这