当前位置:网站首页>YARN 应用提交过程
YARN 应用提交过程
2022-06-22 05:13:00 【Shockang】
前言
本文隶属于专栏《大数据技术体系》,该专栏为笔者原创,引用请注明来源,不足和错误之处请在评论区帮忙指出,谢谢!
本专栏目录结构和参考文献请见大数据技术体系
YARN 应用提交过程
Application 在 Yarn 中的执行过程,整个执行过程可以总结为三步:
- 应用程序提交
- 启动应用的ApplicationMaster实例
- ApplicationMaster 实例管理应用程序的执行

详细版本
- 客户端程序向 ResourceManager 提交应用并请求一个 ApplicationMaster 实例;
- ResourceManager 找到一个可以运行一个 Container 的 NodeManager,并在这个Container 中启动 ApplicationMaster 实例;
- ApplicationMaster 向 ResourceManager 进行注册,注册之后客户端就可以查询 ResourceManager 获得自己 ApplicationMaster 的详细信息,以后就可以和自己的 ApplicationMaster 直接交互了(这个时候,客户端主动和 ApplicationMaster 交流,应用先向 ApplicationMaster 发送一个满足自己需求的资源请求);
- 在平常的操作过程中,ApplicationMaster 根据 resource-request 协议向 ResourceManager 发送 resource-request 请求;
- 当 Container 被成功分配后,ApplicationMaster 通过向 NodeManager 发送 container-launch-specification 信息来启动 Container,container-launch-specification 信息包含了能够让 Container 和 ApplicationMaster 交流所需要的资料;
- 应用程序的代码以 task 形式在启动的 Container 中运行,并把运行的进度、状态等信息通过 application-specific 协议发送给 ApplicationMaster;
- 在应用程序运行期间,提交应用的客户端主动和 ApplicationMaster 交流获得应用的运行状态、进度更新等信息,交流协议也是 application-specific 协议;
- 一旦应用程序执行完成并且所有相关工作也已经完成,ApplicationMaster向 ResourceManager 取消注册然后关闭,用到所有的 Container 也归还给系统。
精简版本
- 用户将应用程序提交到 ResourceManager 上;
- ResourceManager 为应用程序 ApplicationMaster 申请资源,并与某个 NodeManager 通信启动第一个 Container,以启动 ApplicationMaster;
- ApplicationMaster 与 ResourceManager 注册进行通信,为内部要执行的任务申请资源,一旦得到资源后,将于 NodeManager 通信,以启动对应的 Task;
- 所有任务运行完成后,ApplicationMaster 向 ResourceManager 注销,整个应用程序运行结束。
边栏推荐
- Some notes on the use of C language strings
- [scientific research notes] focal loss
- Six sides tmall has already offered. After a review of my experience, is it really that difficult to enter a big factory?
- Free questions for polymerization process and test papers for polymerization process in 2022
- Literacy of C language concept knowledge (supplemented and updated from time to time)
- zipimport. ZipImportError:
- Use keytool to access the JKS file get SSL certificate
- Tupu software 2D and 2.5D case collection | smart Park, data center, SMT production line
- DTS migration script sqlserver
- 2022 a special equipment related management (elevator) examination data and a special equipment related management (elevator) analysis
猜你喜欢

非递归打印斐波那契数列

Start with the strategy of small market value factor, and take you into quantitative investment (with the strategy of 77.83% annualized return)

Gavin's perception of transformer live class - NLU and policies data decryption, source code analysis and practice of insurance BOT in the insurance industry of Rasa dialogue robot project (57)

In 2022, the super intern plans to make a breakthrough in the offer of it famous enterprises, and the nine high salary skills help the dream of famous enterprises

The Impossible Triangle of NLP?

In 2022, the postgraduate entrance examination ran aground | how to counter attack famous IT enterprises and become a programmer in three months

9. Gateway cross domain processing

使用选择法对十个整数进行排序

Daemon flow

laravel的服务容器,服务提供者,门面的理解
随机推荐
Pull all data of a branch of the code cloud to cover the local code
Kubernetes——部署应用到集群中
Leetcode -- the kth largest node of the binary search tree (traversal by means of middle order)
Monorepo Sliding methodology: Reference module Hot Update
Pull down refresh, push up load (easy to use, finally)
Solve the shortage of developers. Maybe it can help you
C语言数据类型转换规则(隐式转换+显式转换)
MySQL day01 class notes
8. Gateway request logging
rambbmitmq消费方
9 practical shell scripts, recommended collection!
In 2022, the third batch (principal) of Guangdong Provincial Safety Officer a certificate was found and analyzed, and the third batch (principal) of Guangdong Provincial Safety Officer a certificate w
汉诺塔问题
招贤纳士-第23期
mysql day03课堂笔记
VirtualBox 6.1.34 release
[user guide] create an environment using public CONDA
Qt保存QTextEdit内存至.txt文件中
Zset type of redis
When idea creates a method, it uses annotations to prompt method parameters (param), return value (return), and method function (description)