栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

Yarn 入门

Yarn 入门


一、Yarn组成

二、Yarn工作机制

三、Yarn 调度器









四、Yarn 命令






五、Yarn 环境参数配置



  
    yarn.scheduler.capacity.root.queues
    default,hive 
    
      The queues at the this level (root is the root queue).
    
  


  
    yarn.scheduler.capacity.root.default.capacity
    60
    Default queue target capacity.
  
  
   
    yarn.scheduler.capacity.root.hive.capacity
    40
    Default queue target capacity.
  

 
  
    yarn.scheduler.capacity.root.default.user-limit-factor
    1
    
      Default queue user limit a percentage from 0.0 to 1.0.
    
  
  
    yarn.scheduler.capacity.root.hive.user-limit-factor
    1
    
      Default queue user limit a percentage from 0.0 to 1.0.
    
  
  
   
  
    yarn.scheduler.capacity.root.default.maximum-capacity
    60
    
      The maximum capacity of the default queue. 
    
  
  
    yarn.scheduler.capacity.root.hive.maximum-capacity
    80
    
      The maximum capacity of the default queue. 
    
  

   
  
    yarn.scheduler.capacity.root.default.state
    RUNNING
    
      The state of the default queue. State can be one of RUNNING or STOPPED.
    
  
  
    yarn.scheduler.capacity.root.hive.state
    RUNNING
    
      The state of the default queue. State can be one of RUNNING or STOPPED.
    
  
  
  
     
  
    yarn.scheduler.capacity.root.default.acl_submit_applications
    *
    
      The ACL of who can submit jobs to the default queue.
    
  
  
    yarn.scheduler.capacity.root.hive.acl_submit_applications
    *
    
      The ACL of who can submit jobs to the default queue.
    
  
  
   
  
    yarn.scheduler.capacity.root.default.acl_administer_queue
    *
    
      The ACL of who can administer jobs on the default queue.
    
  
  
    yarn.scheduler.capacity.root.hive.acl_administer_queue
    *
    
      The ACL of who can administer jobs on the default queue.
    
  
  
   
  
    yarn.scheduler.capacity.root.default.acl_application_max_priority
    *
    
      The ACL of who can submit applications with configured priority.
      For e.g, [user={name} group={name} max_priority={priority} default_priority={priority}]
    
  
  
    yarn.scheduler.capacity.root.hive.acl_application_max_priority
    *
    
      The ACL of who can submit applications with configured priority.
      For e.g, [user={name} group={name} max_priority={priority} default_priority={priority}]
    
  
  
   
   
     yarn.scheduler.capacity.root.default.maximum-application-lifetime
     
     -1
     
        Maximum lifetime of an application which is submitted to a queue
        in seconds. Any value less than or equal to zero will be considered as
        disabled.
        This will be a hard time limit for all applications in this
        queue. If positive value is configured then any application submitted
        to this queue will be killed after exceeds the configured lifetime.
        User can also specify lifetime per application basis in
        application submission context. But user lifetime will be
        overridden if it exceeds queue maximum lifetime. It is point-in-time
        configuration.
        Note : Configuring too low value will result in killing application
        sooner. This feature is applicable only for leaf queue.
     
   
   
     yarn.scheduler.capacity.root.hive.maximum-application-lifetime
     
     -1
     
        Maximum lifetime of an application which is submitted to a queue
        in seconds. Any value less than or equal to zero will be considered as
        disabled.
        This will be a hard time limit for all applications in this
        queue. If positive value is configured then any application submitted
        to this queue will be killed after exceeds the configured lifetime.
        User can also specify lifetime per application basis in
        application submission context. But user lifetime will be
        overridden if it exceeds queue maximum lifetime. It is point-in-time
        configuration.
        Note : Configuring too low value will result in killing application
        sooner. This feature is applicable only for leaf queue.
     
   
   
   
 
   
     yarn.scheduler.capacity.root.default.default-application-lifetime
     
     -1
     
        Default lifetime of an application which is submitted to a queue
        in seconds. Any value less than or equal to zero will be considered as
        disabled.
        If the user has not submitted application with lifetime value then this
        value will be taken. It is point-in-time configuration.
        Note : Default lifetime can't exceed maximum lifetime. This feature is
        applicable only for leaf queue.
     
   
   
      
     yarn.scheduler.capacity.root.hive.default-application-lifetime
     
     -1
     
        Default lifetime of an application which is submitted to a queue
        in seconds. Any value less than or equal to zero will be considered as
        disabled.
        If the user has not submitted application with lifetime value then this
        value will be taken. It is point-in-time configuration.
        Note : Default lifetime can't exceed maximum lifetime. This feature is
        applicable only for leaf queue.
     
   

使用yarn rmadmin -refreshQueues刷新调度器配置

在向Yarn 提交mapreduce 任务时间:
hadoop jar hadoop-mapreduce-examples-3.1.3.jar wordcount -D mapreduce.job.queuename=hive /input /output4

任务优先级配置:


        yarn.cluster.max-application-priority
        5

公平调度器的配置:
https://www.bilibili.com/video/BV1Qp4y1n7EN?p=139

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/758312.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号