Hadoop series-job submission process on Yarn
Others
2021-01-26 06:08:12
views: null
Submission process
- Assignment submission
Client
Call the job.waitForCompletion
method to submit MapReduce jobs to the entire cluster.
Client
To ResourceManager
a job application id
.
RM
Client
The path and job submitted to the returned resource id
.
Client
Submit the jar package, slice information, and xml configuration file to the specified path.
Client
After the submission is completed, MR
apply for operation mrApplicationMaster
.
- Job initialization
RM
After receiving Client
the request, convert the job into a Task and submit it to the task queue.
- A certain person is free to
NodeManager
receive the job.
NM
Create Container
and apply for operation mrApp
.
NM
Download the Client
submitted resources.
- Task Assignment
mrApp
RM
Run multiple MapTask
tasks to request .
RM
Assign the mrApp
submitted tasks to multiple NM
and NM
start them separately MapTask
.
MapTask
After running, run mrApp
to the RM
request ReduceTask
.
RduceTask
From the MapTask
acquired data the respective partition.
- After the program is complete,
MR
the RM
cancellation of their own.
Origin blog.csdn.net/Cxf2018/article/details/109840837