1. the client calls the job submission function to submit the program to JobTracker. 2. after JobTracker receives a new job, it notifies the job scheduler to initialize the job. 3. the TastTracker reports heartbeat to JobTracker, contains information such as the number of remaining slots and whether new tasks can be accepted. 4. for example:
1. the client calls the job submission function to submit the program to JobTracker;
2. after JobTracker receives a new job, it notifies the job scheduler to initialize the job;
3. TastTracker reports heartbeat to JobTracker, including the number of remaining slots and whether new tasks can be accepted.
4. if the TaskTracker can accept new tasks, JobTracker calls TaskScheduler's external function assignTasks to assign new tasks to the TaskTracker;
5. TaskTracker selects the most appropriate task list for the TaskTracker according to a certain scheduling policy and returns the list to JobTracker;
6. JobTracker returns the task list to the corresponding TaskTracker in the form of heartbeat response;
7. TaskTracker starts the task after receiving the heartbeat response;