-
yarn-client submit the job the way
-
Client submits a Application, to start a process on the client Driver
-
Driver process will (ResourceManager) RS sends a request to start the resource AM (ApplicationMaster) of
-
RS receiving the request, a random selection NM (NodeManager) Start AM. NM where the node corresponds to the Worker Standalone
-
AM After the start, it will request a number of container resources to the RS, to start Executor
-
RS will find a number of NM return to AM, to start Executor
-
AM Executor will start to send commands NM
-
After Executor starts, the reverse is registered to Driver, Driver is sent to the Executor task, implementation and results back to the end Driver
-
yarn-cluster task submit way
-
Application submission client application, sends a request to the RS (ResourceManager), a request to start AM (ApplicationMaster)
-
RS receives the request on a random NM (NodeManager) starts AM (corresponding to end Driver)
-
Start AM, AM sends a request to the RS, a request for starting a batch container Executor
-
RS node to return a number of NM AM
-
AM is connected to the NM, NM sends a request to start Executor
-
Executor reverse registration to AM Driver node is located. Driver task sent to Executor