hadoop1 & hadoop2 fair-schduler 配置和使用
来源:互联网 发布:淘宝联盟在线客服 编辑:程序博客网 时间:2024/05/17 22:30
hadoop1
- 配置 mapred-site.xml,增加如下内容
<property> <name>mapred.jobtracker.taskScheduler</name> <value>org.apache.hadoop.mapred.FairScheduler</value> </property> <property> <name>mapred.fairscheduler.allocation.file</name> <value>/etc/hadoop/conf/pools.xml</value> </property>
- 配置 pools.xml,增加如下内容
<queue name="default”> <minResources>1024 mb,1vcores</minResources> <maxResources>61440 mb,20vcores</maxResources> <maxRunningApps>10</maxRunningApps> <weight>2.0</weight> <schedulingPolicy>fair</schedulingPolicy></queue><queue name=“hadoop”> <minResources>1024 mb,10vcores</minResources> <maxResources>3072000 mb,960vcores</maxResources> <maxRunningApps>60</maxRunningApps> <weight>5.0</weight> <schedulingPolicy>fair</schedulingPolicy> <aclSubmitApps>hadoop,yarn,spark</aclSubmitApps></queue><queue name="spark"> <minResources>1024 mb,10vcores</minResources> <maxResources>61440 mb,20vcores</maxResources> <maxRunningApps>10</maxRunningApps> <weight>4.0</weight> <schedulingPolicy>fair</schedulingPolicy><aclSubmitApps>yarn,spark</aclSubmitApps></queue><userMaxAppsDefault>20</userMaxAppsDefault>
- 提交作业指定队列方式
-Dmapred.job.queue.name=hadoop
hadoop2
- 配置 yarn-site.xml,增加如下内容
<property> <name>yarn.resourcemanager.scheduler.class</name> <value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</value></property><property> <name>yarn.scheduler.fair.allocation.file</name> <value>/home/cluster/conf/hadoop/fair-scheduler.xml</value></property><property> <name>yarn.scheduler.fair.user-as-default-queue</name> //如果希望以用户名作为队列,可以将该属性配置为true,默认为true,所以如果不想以用户名为队列的,必须显式的设置成false <value>false</value> </property>
- 配置 fair-scheduler.xml,增加如下内容
<queue name="default”> <minResources>1024 mb,1vcores</minResources> <maxResources>61440 mb,20vcores</maxResources> <maxRunningApps>10</maxRunningApps> <weight>2.0</weight> <schedulingPolicy>fair</schedulingPolicy></queue><queue name=“hadoop”> <minResources>1024 mb,10vcores</minResources> <maxResources>3072000 mb,960vcores</maxResources> <maxRunningApps>60</maxRunningApps> <weight>5.0</weight> <schedulingPolicy>fair</schedulingPolicy> <aclSubmitApps>hadoop,yarn,spark</aclSubmitApps></queue><queue name="spark"> <minResources>1024 mb,10vcores</minResources> <maxResources>61440 mb,20vcores</maxResources> <maxRunningApps>10</maxRunningApps> <weight>4.0</weight> <schedulingPolicy>fair</schedulingPolicy><aclSubmitApps>yarn,spark</aclSubmitApps></queue><userMaxAppsDefault>20</userMaxAppsDefault>
- 提交作业指定队列方式
-Dmapreduce.job.queuename=root.hadoop
spark
- 提交作业指定队列方式
--queue=root.spark
0 0
- hadoop1 & hadoop2 fair-schduler 配置和使用
- hadoop fair scheduler配置和使用
- hadoop1和hadoop2架构图
- hadoop1和hadoop2的比较
- Hadoop2和Hadoop1的区别
- Hadoop1和Hadoop2的区别
- hadoop1.x和hadoop2.x的对比
- hadoop1.x和hadoop2.x的区别
- Hadoop2.2.0已经遗弃的属性名称和 hadoop1.*配置属性比较
- hadoop2.0 公平调度器(fair-scheduler)配置
- hadoop2.0 公平调度器(fair-scheduler)配置
- 配置hadoop 使用fair scheduler调度器
- 配置hadoop 使用fair scheduler调度器
- 配置hadoop 使用fair scheduler调度器
- Hadoop1.0存在的问题和Hadoop2.0的介绍
- hadoop1.0 和hadoop2.0 任务处理架构比较
- 1、Hadoop2.6.0 和 Hadoop1.2.1伪分布环境搭建
- hadoop1.0 和hadoop2.0 任务处理架构比较
- 关于CPU Cache -- 程序猿需要知道的那些事
- centos 6.5 lnmp环境部署一些二次修改事项
- 使用HttpClient上传文件资源(已验证)
- BaseServlet<学习随笔>
- 生活中的状态模式
- hadoop1 & hadoop2 fair-schduler 配置和使用
- 完全背包——方案个数 UVA11137 Ingenuous Cubrency
- Android性能优化之使用SparseArray代替HashMap
- c++中的rand函数
- ActiveMQ 即时通讯服务 浅析
- Hibernate检索方式之HQL(Hibernate Query Language)
- org.apache.spark.SparkException: A master URL must be set in your configuration
- 使用Swig为Python程序添加C扩展
- Mac环境下svn的使用