Jobtracker and Tasktracker Overview

Source: Internet
Author: User
Tags hadoop mapreduce

An overview:

(1) Hadoop MapReduce uses the master/slave structure. *master: The entire cluster is the only global manager, functions include: job management, status monitoring and task scheduling, namely, the Jobtracker in MapReduce.   *slave: Responsible for the execution of the task and the return of the task status, that is, the Tasktracker in MapReduce.

Two Jobtracker analysis:

(1) Overview: Jobtracker is a background service process, after startup, will always listen and receive the heartbeat information sent from each tasktracker, including the use of resources and task running condition, etc. Information. (2) Main functions of Jobtracker: 1. Job Control : in Hadoop each application is represented as a job, each job is divided into multiple tasks, and Jobtracker's job control module is responsible for the decomposition and status monitoring of the job. * The most important is the status monitoring: mainly including tasktracker condition monitoring, job status monitoring and task status monitoring. Main role: Fault tolerance and provide decision-making basis for task scheduling.   2. Resource Management .

Three Tasktracker Analysis:

(1) Tasktracker Overview: Tasktracker is a bridge between Jobtracker and task: On the one hand, receives and executes various commands from Jobtracker: Running tasks, submitting tasks, killing tasks, etc. on the other hand, the local node The status of each task is reported periodically to jobtracker through the heartbeat . The RPC protocol is used to communicate between the Tasktracker and the Jobtracker and the task. (2) Features of Tasktracker: 1. reporting Heartbeat : Tracker periodically reports various information on all nodes through the heartbeat mechanism to jobtracker. This information includes two parts: * Machine-level information: node health, resource usage, etc. * Task Level Information: Task execution progress, task run status, and so on. 2. Execute command : Jobtracker will give Tasktracker a variety of commands, mainly including: Start Task (launchtaskaction), submit task (committaskaction), kill the Task ( killtaskaction), kill Job (Killjobaction), and Reinitialize (tasktrackerreinitaction).

(ext.) Jobtracker and Tasktracker overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.