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

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相关配置参数

mapred-site.xml

参数调优

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

 

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

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

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

1wget http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/ 2hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz 3tar zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz 4 5[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 6Resolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 13.33.231.53, 13.33.231.93, 13.33.231.120, ... 7Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|13.33.231.53|:80... connected. 8HTTP request sent, awaiting response... 200 OK 9Length: 85173 (83K) [application/x-tar] 10Saving to: ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’ 11 12100%[======================================================================================>] 85,173 313KB/s in 0.3s 13 142018-11-26 22:11:10 (313 KB/s) - ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’ saved [85173/85173] 15 16[root@node1 ~]#

 

1[root@node1 ~]# tar -zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz 2hdp_manual_install_rpm_helper_files-2.6.0.3.8/ 3hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ 4hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/ 5hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-log4j.properties.template 6hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-site.xml 7hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-env.sh 8hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hive/hive-exec-log4j.properties.template 9hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/ 10hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/ 11hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/nagios.cfg-centos 12hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-hosts.cfg 13hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-commands.cfg 14hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-hostgroups.cfg 15hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-servicegroups.cfg 16hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/hadoop-services.cfg 17hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/objects/nagios.cfg-suse 18hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/ 19hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_resourcemanager_nodes_percentage.sh 20hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_name_dir_status.php 21hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_datanode_storage.php 22hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_mapred_local_dir_used.sh 23hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_aggregate.php 24hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hdfs_blocks.php 25hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_rpcq_latency.php 26hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_webui.sh 27hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_oozie_status.sh 28hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_webhcat_status.sh 29hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hdfs_capacity.php 30hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_cpu.pl 31hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_hive_metastore_status.sh 32hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/nagios/plugins/check_nodemanager_health.sh 33hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/ 34hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-metrics2.properties 35hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/capacity-scheduler.xml 36hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-policy.xml 37hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-env.sh 38hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/core-site.xml 39hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/yarn-site.xml 40hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/mapred-site.xml 41hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/container-executor.cfg 42hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/yarn-env.sh 43hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/health_check 44hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/mapred-queue-acls.xml 45hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/commons-logging.properties 46hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hadoop-metrics2.properties-GANGLIA 47hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/log4j.properties 48hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/core_hadoop/hdfs-site.xml 49hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/ 50hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-site-template.xml 51hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env-template.cmd 52hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env.sh 53hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-site.xml 54hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/sqoop/sqoop-env-template.sh 55hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/ 56hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/ 57hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/hdp-gmetad 58hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/scripts/hdp-gmond 59hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/ 60hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkGmetad.sh 61hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startRrdcached.sh 62hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkGmond.sh 63hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmond.init 64hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/rrdcachedLib.sh 65hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmetad.init 66hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startGmond.sh 67hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaEnv.sh 68hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/startGmetad.sh 69hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/rrd.py 70hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmondLib.sh 71hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/setupGanglia.sh 72hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaClusters.conf 73hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopGmetad.sh 74hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/teardownGanglia.sh 75hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gangliaLib.sh 76hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopGmond.sh 77hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/stopRrdcached.sh 78hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/checkRrdcached.sh 79hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/ganglia/objects/gmetadLib.sh 80hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/ 81hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/zookeeper-env.sh 82hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/configuration.xsl 83hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/log4j.properties 84hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/zoo.cfg 85hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/ 86hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/pig-env.sh 87hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/pig.properties 88hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/log4j.properties 89hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/ 90hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-log4j.properties 91hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-env.sh 92hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-site.xml 93hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/adminusers.txt 94hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/hadoop-config.xml 95hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-default.xml 96hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/ 97hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-policy.xml 98hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/regionservers 99hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties 100hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-env.sh 101hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.master-GANGLIA 102hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.regionservers-GANGLIA 103hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-site.xml 104hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/log4j.properties 105hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/ 106hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/webhcat-env.sh 107hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/webhcat-site.xml 108hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/ 109hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/directories.sh 110hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/yarn-utils.py 111hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/usersAndGroups.sh 112hdp_manual_install_rpm_helper_files-2.6.0.3.8/readme.txt 113hdp_manual_install_rpm_helper_files-2.6.0.3.8/HDP-CHANGES.txt

       如果节点有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”

点赞
收藏

评论区

加载中...

相关推荐

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

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

皕杰报表之UUID

​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )

mysql设置时区

mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0

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