YARN的执行流程

在这里插入图片描述

职责说明

  • Resource Manager : the ultimate authority that arbitrates resources among all the applications in the system. 统筹全局,协调资源分配
  • Node Manager : the per-machine framework agent who is responsible for containers, monitoring their resource usage (cpu, memory, disk, network) and reporting the same to the ResourceManager/Scheduler.每台机器对应一个NM,监控 Containers 的资源使用情况并报告给RM,定时向RM发送心跳以检查健康状态
  • ApplicationMaster : per-application ApplicationMaster is, in effect, a framework specific library and is tasked with negotiating resources from the ResourceManager and working with the NodeManager(s) to execute and monitor the tasks.每个应用程序对应一个AM,向RM申请用于执行task的资源,和NM一起监控执行task的运行情况
  • Container : incorporates elements such as memory, cpu, disk, network etc.

流程概述

在这里插入图片描述

  1. 客户端 Client 提交任务到 Resource Manager
  2. Resource Manager 与 Node Manager 进行通信,要求启动一个Container 去执行 task
  3. 启动一个 Container 去运行 Application Master
  4. Application Master 注册到 Resource Manager,并向RM申请资源
  5. 申请到资源后向 Node Manager 请求启动 Container 去执行 task
  6. Node Manager 启动 Container 去执行 task
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值