Hadoop基础教程-第5章 YARN:资源调度平台(5.2 YARN参数解读与调优)
来源:互联网 发布:iphone软件排行 编辑:程序博客网 时间:2024/06/05 10:26
第5章 YARN:资源调度平台
5.2 YARN参数解读与调优
yarn-site.xml文件默认参数:
http://hadoop.apache.org/docs/r2.7.3/hadoop-yarn/hadoop-yarn-common/yarn-default.xml
5.2.1 ResourceManager相关配置参数
..capacity.CapacityScheduler的完整名称: org.apache.Hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler
5.2.2 NodeManager相关配置参数
5.2.3 mapred-site.xml
5.2.4 参数调优
参照
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”连接,可以看到两条命令
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.gztar 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--2017-05-23 23:26:13-- http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gzResolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 52.84.167.222, 52.84.167.38, 52.84.167.49, ...Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|52.84.167.222|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 85173 (83K) [application/x-tar]Saving to: ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’100%[==================================================================================================================================>] 85,173 132KB/s in 0.6s 2017-05-23 23:26:14 (132 KB/s) - ‘hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz’ saved [85173/85173]
解压缩
[root@node1 ~]# tar -zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gzhdp_manual_install_rpm_helper_files-2.6.0.3.8/hdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/.....2.6.0.3.8/configuration_files/zookeeper/configuration.xslhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/log4j.propertieshdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/zookeeper/zoo.cfghdp_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.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/pig.propertieshdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/pig/log4j.propertieshdp_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.propertieshdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-env.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-site.xmlhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/adminusers.txthdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/hadoop-config.xmlhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/oozie/oozie-default.xmlhdp_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.xmlhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/regionservershdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.propertieshdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-env.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.master-GANGLIAhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hadoop-metrics.properties.regionservers-GANGLIAhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/hbase-site.xmlhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/hbase/log4j.propertieshdp_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.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/configuration_files/webhcat/webhcat-site.xmlhdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/hdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/directories.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/yarn-utils.pyhdp_manual_install_rpm_helper_files-2.6.0.3.8/scripts/usersAndGroups.shhdp_manual_install_rpm_helper_files-2.6.0.3.8/readme.txthdp_manual_install_rpm_helper_files-2.6.0.3.8/HDP-CHANGES.txt[root@node1 ~]#
[root@node1 ~]# cd hdp_manual_install_rpm_helper_files-2.6.0.3.8[root@node1 hdp_manual_install_rpm_helper_files-2.6.0.3.8]# lsconfiguration_files HDP-CHANGES.txt readme.txt scripts[root@nb0 hdp_manual_install_rpm_helper_files-2.6.0.3.8]# cd scripts/[root@nb0 scripts]# lsdirectories.sh usersAndGroups.sh yarn-utils.py
假设,某个节点有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
选项说明
阅读全文
0 0
- Hadoop基础教程-第5章 YARN:资源调度平台(5.2 YARN参数解读与调优)
- Hadoop基础教程-第5章 YARN:资源调度平台(5.1 YARN介绍)(草稿)
- Hadoop基础教程-第5章 YARN:资源调度平台(5.3 YARN集群配置)(草稿)
- Hadoop基础教程-第5章 YARN:资源调度平台(5.4 YARN集群运行)(草稿)
- Hadoop基础教程-第5章 YARN:资源调度平台(5.6 YARN的命令)(草稿)
- Hadoop基础教程-第5章 YARN:资源调度平台(5.5 YARN的调度器)(草稿)
- Hadoop基础教程-第9章 HA高可用(9.4 YARN 高可用)(草稿)
- Yarn 资源调度策略
- Yarn 资源调度器
- YARN资源调度策略
- 资源调度框架YARN
- Yarn资源调度策略
- Yarn的原理与资源调度
- Yarn的原理与资源调度
- Yarn的原理与资源调度
- YARN应用场景、原理与资源调度
- Hadoop YARN 内存和CPU两种资源的调度
- Yarn的资源调度与erlang进程调度二三事
- HDU
- [Linux]history命令用法详解
- MyBatis中ResultMap和ResultType的区别
- jq 层级选择器
- 排序算法
- Hadoop基础教程-第5章 YARN:资源调度平台(5.2 YARN参数解读与调优)
- maven-assembly-plugin 打包可执行jar(fat jar)和配置文件与jar同时打包部署
- VS2010中Qt翻译文件的创建与使用范例
- CentOS6.8装tensorflow1.0
- CAS单点登录之mysql数据库用户验证及常见问题
- 模板
- Kotlin基本语法(译)
- Android:LinearLayout布局中Layout_weight的深刻理解
- python语法注意点(更新中)