当前位置:网站首页>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
边栏推荐
- 96. Strange tower of Hanoi
- Leetcode 560 and the subarray of K (with negative numbers, one-time traversal prefix and), leetcode 438 find all alphabetic ectopic words in the string (optimized sliding window), leetcode 141 circula
- The difference between token and session, this classic interview question deserves a more in-depth answer
- [sciter]: window communication
- Pressing Ctrl will cause several key press messages
- 2787: calculate 24
- Leetcode 206 reverse linked list, 3 longest substring without repeated characters, 912 sorted array (fast row), the kth largest element in 215 array, 53 largest subarray and 152 product largest subarr
- Actual measurement of Qunhui 71000 Gigabit Network
- Delete remote and local branches
- [feature transformation] feature transformation is to ensure small information loss but high-quality prediction results.
猜你喜欢

Easy to use office network optimization tool onedns

How to apply Po mode in selenium automated testing

2022 chemical automation control instrument test question simulation test platform operation

147-利用路由元信息设置是否缓存——include和exclude使用——activated和deactivated的使用

Synthesis route of ALA PNA alanine modified PNA peptide nucleic acid | AC ala PNA

The difference between map and flatmap in stream

BGP - border gateway protocol
![[training Day9] rotate [violence] [thinking]](/img/b9/598dd0dffb9c82230f43484f9c8a1e.png)
[training Day9] rotate [violence] [thinking]

Software testing interview tips | if you don't receive the offer, I'll wash my hair upside down

Solution: 2003 cant connect to MySQL server on * * * * and use near 'identified by' * * * * 'with grant option' at
随机推荐
Easy to use office network optimization tool onedns
English grammar_ Demonstrative pronoun this / these / that / those
Leetcode 206 reverse linked list, 3 longest substring without repeated characters, 912 sorted array (fast row), the kth largest element in 215 array, 53 largest subarray and 152 product largest subarr
Home Assistant中接入博联WiFi智能遥控
[training Day6] dream [priority queue] [greed]
In the era of new knowledge economy, who is producing knowledge?
clip:learning transferable visual models from natural language supervision
Do you want to verify and use the database in the interface test
How to choose securities companies that support flush? Is it safe to open an account on your mobile phone
Evaluation of four operation expressions
[training Day9] maze [line segment tree]
class file has wrong version 55.0, should be 52.0
MySQL docker installation master-slave deployment
[leetcode] 1184. Distance between bus stops
Azide labeled PNA peptide nucleic acid | methylene blue labeled PNA peptide nucleic acid | tyrosine modified PNA | Tyr PNA Qiyue Bio
Huawei set up login with account and password
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
Wechat stores build order pages and automatically grab tickets
Vscode connected to the remote server cannot format the code / document (resolved)
Oracle primary key auto increment setting