b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

mapreduce的工作原理_mapreduce计算原理_mapreduce的作用(10)

电脑杂谈  发布时间:2017-03-13 14:37:59  来源:网络整理

3.在$HADOOP_HOME/conf/新建配置文件fair-scheduler.xml

<?xml version="1.0"?>
<allocations>
<pool name="hive">
  <minMaps>90</minMaps>
  <minReduces>20</minReduces>
  <maxRunningJobs>20</maxRunningJobs>
  <weight>2.0</weight>
  <minSharePreemptionTimeout>30</minSharePreemptionTimeout>
</pool>
 
<pool name="hadoop">
  <minMaps>9</minMaps>
  <minReduces>2</minReduces>
  <maxRunningJobs>20</maxRunningJobs>
  <weight>1.0</weight>
  <minSharePreemptionTimeout>30</minSharePreemptionTimeout>
</pool>
 
<user name="hadoop">
    <maxRunningJobs>6</maxRunningJobs>
</user>
<poolMaxJobsDefault>10</poolMaxJobsDefault>
<userMaxJobsDefault>8</userMaxJobsDefault>
<defaultMinSharePreemptionTimeout>600</defaultMinSharePreemptionTimeout>
<fairSharePreemptionTimeout>600</fairSharePreemptionTimeout>
</allocations>

4.在集群的各个节点执行以上步骤,然后重启集群,在:50030/scheduler 即可查看到调度器运行状态,如果修改调度器配置的话,只需要修改文件fair-scheduler.xml ,不需重启配置即可生效。

5.在执行hive任务时,设置hive属于的队列set mapred.job.queue.name=hive;

另外,如果在执行MR JOB的时候出现XX用户访问不了YY队列的话,就需要在mapred-queue-acls.xml里配置相应的属性,来对访问权限进行控制,比如:

<property>
  <name>mapred.queue.default.acl-submit-job</name>
  <value>*</value>
  <description> Comma separated list of user and group names that are allowed
    to submit jobs to the 'default' queue. The user list and the group list
    are separated by a blank. For e.g. user1,user2 group1,group2.
    If set to the special value '*', it means all users are allowed to
    submit jobs. If set to ' '(i.e. space), no user will be allowed to submit
    jobs.
 
    It is only used if authorization is enabled in Map/Reduce by setting the
    configuration property mapred.acls.enabled to true.
 
    Irrespective of this ACL configuration, the user who started the cluster and
    cluster administrators configured via
    mapreduce.cluster.administrators can submit jobs.
  </description>
</property>
 
<property>
  <name>mapred.queue.default.acl-administer-jobs</name>
  <value>*</value>
  <description> Comma separated list of user and group names that are allowed
    to view job details, kill jobs or modify job's priority for all the jobs
    in the 'default' queue. The user list and the group list
    are separated by a blank. For e.g. user1,user2 group1,group2.
    If set to the special value '*', it means all users are allowed to do
    this operation. If set to ' '(i.e. space), no user will be allowed to do
    this operation.
 
    It is only used if authorization is enabled in Map/Reduce by setting the
    configuration property mapred.acls.enabled to true.
 
    Irrespective of this ACL configuration, the user who started the cluster and
    cluster administrators configured via
    mapreduce.cluster.administrators can do the above operations on all the jobs
    in all the queues. The job owner can do all the above operations on his/her
    job irrespective of this ACL configuration.
  </description>
</property>


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-37299-10.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 石超宇
      石超宇

      特别是常规潜艇世界第一

    • 李昱婕
      李昱婕

      收二手家电者的广告词

    热点图片
    拼命载入中...