当前位置:网站首页>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
边栏推荐
- ma.glasnost.orika. MappingException:No converter registered for conversion from Date to LocalDateTime
- What does software testing need to learn?
- [msp430g2553] graphical development notes (1) configuration environment
- Istio II traffic hijacking process
- Transport layer protocol parsing -- UDP and TCP
- Methods of using tyrosine modified peptide nucleic acid PNA | Tyr PNA | BZ Tyr PNA | 99Tcm survivinmrna antisense peptide nucleic acid
- How does starknet change the L2 landscape?
- Quick sort
- How to test WebService interface
- 93. Recursive implementation of combinatorial enumeration
猜你喜欢

Generate self signed certificate: generate certificate and secret key

Istio一之Envoy工作原理

Working principle of envy of istio I

Each blogger needs to ask himself seven basic questions

A new UI testing method: visual perception test
![[training Day9] maze [line segment tree]](/img/56/e8458245fe564821740ab94ece37a4.png)
[training Day9] maze [line segment tree]

Opengl rendering pipeline

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
![[feature transformation] feature transformation is to ensure small information loss but high-quality prediction results.](/img/ad/6f5d97caa3f5163197ba435276a719.png)
[feature transformation] feature transformation is to ensure small information loss but high-quality prediction results.

English grammar_ Demonstrative pronoun this / these / that / those
随机推荐
TCP sliding window, singleton mode (lazy and hungry) double checked locking / double checked locking (DCL)
Oracle 19C datagruad replication standby rman-05535 ora-01275
Pressing Ctrl will cause several key press messages
Spark related FAQ summary
2787: calculate 24
Modulenotfounderror: no module named 'pysat.solvers' (resolved)
Appium obtains and clicks coordinates, which is very easy to use when elements are inconvenient to locate
[feature transformation] feature transformation is to ensure small information loss but high-quality prediction results.
Flink Window&Time 原理
[training Day8] series [matrix multiplication]
whistle ERR_ CERT_ AUTHORITY_ INVALID
Native applets are introduced using vant webapp
【LeetCode】1184. 公交站间的距离
[training Day8] [luogu_p6335] staza [tarjan]
Istio一之Envoy工作原理
Rhodamine B labeled PNA | rhodamine b-pna | biotin modified PNA | biotin modified PNA | specification information
Mysql8 doesn't seem to support MyISAM partition tables. Does polardb-x support MyISAM partition tables?
Do you want to enroll in a training class or study by yourself?
Preview and save pictures using uni app
[msp430g2553] graphical development notes (2) system clock and low power consumption mode