当前位置:网站首页>Summary of yarn Explorer
Summary of yarn Explorer
2022-07-24 20:36:00 【lixia0417mul2】
1. From a systematic point of view yarn Mainly by ResourceManager and NodeManager form ,ResourceManager Mainly responsible for resource scheduling ,NodeManager Mainly responsible for operation Container Containers .
2. From application ( such as MapReduce perhaps Spark) From the perspective of yarn It mainly consists of three parts , Namely ResourceManager,ApplicationMaster and NodeManager
3. When client The client submits the application to ResourceManager after ,ResourceManager Will use the client settings cpu And memory parameters start first ApplicationMaster Applications , meanwhile ApplicationMaster And ResourceMaster Establish a heartbeat channel between ,ApplicationMaster We will inform you through this channel ResourceMaster Your survival , Normally , An application can only have one ApplicationMaster, But if there is a network partition , It may also consist of multiple ApplicationMaster, It is also known as brain fissure , This abnormal condition will cause multiple programs to write the same shared data , Cause data corruption , We need to try our best to avoid this kind of situation
4.NodeManager Will monitor Container Operation of , Prevent it from using more memory and cpu resources , When that happens ,NodeManager Will directly kill Drop the corresponding container .
5. When the application runs ,NodeManager Local logs will be aggregated and stored in hdfs In a public directory ( Configurable ), In order to persist logs and provide users with access .
6. When the application ends , Under normal circumstances ApplicationMaster Will stop all containers and move to ResourceManager Send end message , When ResourceManager When you receive the message that the application ends , He will tell everyone NodeManager The node sends a request to confirm all that belong to the application container Have been killed , If there are still some container If you were in a state of suspended animation ,NodeManager received RM After the news , Will be forcibly killed and cleaned up container.
7.ApplicationMaster towards ResourceManager The way to request resources is as follows : Suppose there are three computer rooms M1,M2,M3, There are three machines in each machine room , Namely A,B,C, Now there are two copies of data stored M1A, and M2B On , Two... Are needed at this time Container To run the task , When ApplicationMaster towards ResourceManager When applying for resources , Will tell RM Priority in M1A and M2B Apply for a container on the machine , And tell RM If resources are not enough , Then it can be on the rack A And rack B The above application Container, At the same time, continue to tell RM If rack A And rack B The resources on are still insufficient , Then you can allocate any two on any computer room Container to ApplicationMaster Use , Determine according to the location of the data Container The priority relationship of the assigned location is ApplicationMaster The responsibility of the .
8. RM and NM Will maintain a channel ,NM Will tell through this channel RM Current resource usage , such RM There will be an overall overview of the current resource usage of the cluster , In order to RM Allocate resources
9. When NodeManager function Container when , He will first include the remote resources jar file , Download the configuration file to the local directory , These resource types include application wide resources , User wide resources ,public Range ( All users are available ) Resources for , When to start Container The required resources are loaded from the local directory
10. about yarn Come on , Each application can be submitted to a different priority queue when it is submitted , We can do it in yarn Run through yarn rmadmin -- Command to add a new priority queue or remove the application from the priority queue A Adjust to priority queue B in
边栏推荐
- [training Day10] linear [mathematics] [thinking]
- How to learn automated testing? Can you teach yourself?
- Selenium is detected as a crawler. How to shield and bypass it
- Microservice architecture | service monitoring and isolation - [sentinel] TBC
- Sql164 next day retention rate of new users per day in November 2021
- Open source demo | release of open source example of arcall applet
- [training Day9] maze [line segment tree]
- Istio二之流量劫持过程
- Expression evaluation (stack)
- Flink window & time principle
猜你喜欢

Leetcode 1928. minimum cost of reaching the destination within the specified time

Solution: 2003 cant connect to MySQL server on * * * * and use near 'identified by' * * * * 'with grant option' at

How to set appium script startup parameters

Pychart tutorial: 5 very useful tips
![[training Day10] silly [simulation] [greed]](/img/31/94c32e05b498f8ad192f8ec2c500ca.png)
[training Day10] silly [simulation] [greed]

How to test WebService interface

Generate self signed certificate: generate certificate and secret key

Opencv learning Day2

VLAN Technology

Easy to use office network optimization tool onedns
随机推荐
Istio二之流量劫持过程
[training Day9] rotate [violence] [thinking]
The U.S. economy continues to be weak, and Microsoft has frozen recruitment: the cloud business and security software departments have become the hardest hit
Spark related FAQ summary
Upgrade appium automation framework to the latest 2.0
C form application treeview control use
Methods of using tyrosine modified peptide nucleic acid PNA | Tyr PNA | BZ Tyr PNA | 99Tcm survivinmrna antisense peptide nucleic acid
[training Day6] dream [priority queue] [greed]
In the era of new knowledge economy, who is producing knowledge?
96. Strange tower of Hanoi
How to set the allure test report
Shengbang security rushes to the scientific innovation board: Qianxin is its largest customer (55.87 million); Its three-year revenue is 460 million, net profit is 95.04 million, and R & D investment
Lunch break train & problem thinking: on multidimensional array statistics of the number of elements
Oracle 19C datagruad replication standby rman-05535 ora-01275
Leetcode 1928. minimum cost of reaching the destination within the specified time
Install MySQL 5.7.37 on windows10
Native applets are introduced using vant webapp
OpenGL (1) vertex buffer
A new UI testing method: visual perception test
Istio一之Envoy工作原理