ResourceManager: Managing resource CPU and memory above the cluster
NodeManager: Above Run program Applicationmaster multiple
above the NodeManager .
The program above MapReduce is called Mrappmaster.
run Maptask or reducetask on the nodemnager above MapReduce
client: Where the user submits the Code
follow RPC communication mechanism
in Hadoop2, the server code for RPC has changedThe user submits the code to the ResourceManager and needs to go through a protocol Applicationclientprotocol ResourceManager will assign a nodemanager to run it after submission
Applicationmaster
Applicationmaster want to be jobtracker also need resources, so will interact with ResourceManager registration and application resources, go to the agreement Applicationmasterprotocol, Request resources to run map or reduce.
when the application is successful, the Applicationmaster will communicate with Nodemaster and go through the agreement.
Containermanagementprotocol,To initiate and close tasks Nodemnager and ResourceManager to communicate, the protocol Resourcetrackerprotocol,nodemnager will be registered to ResourceManager after the start, At any time, the Resourcemnager will report its own situation, sending the heartbeat to tell itself the resource situation.
Interaction between various node platforms on the yarn platform