Understanding where YARN fits into Hadoop

If we refer to Hadoop 1.x in the first figure of this chapter, then it is clear that the responsibilities of the JobTracker mainly included the following:

  • Managing the computational resources in terms of map and reduce slots
  • Scheduling submitted jobs
  • Monitoring the executions of the TaskTrackers
  • Restarting failed tasks
  • Performing a speculative execution of tasks
  • Calculating the Job Counters

Clearly, the JobTracker alone does a lot of tasks together and is overloaded with lots of work.

This overloading of the JobTracker led to the redesign of the JobTracker, and YARN tried to reduce the responsibilities of the JobTracker in the following ways:

  • Cluster resource management and Scheduling responsibilities were moved to the global Resource Manager (RM)
  • The application life cycle management, that is, job execution and monitoring was moved into a per-application ApplicationMaster (AM)

The Global Resource Manager is seen in the following image:

Understanding where YARN fits into Hadoop

If you look at the preceding figure, you will clearly see the disappearance of the single centralized JobTracker; its place is taken by a Global Resource Manager.

Also, for each job a tiny, dedicated JobTracker is created, which monitors the tasks specific to its job. This tiny JobTracker is run on the slave node.

This tiny, dedicated JobTracker is termed an ApplicationMaster in the new framework (refer to the following figure).

Also, the TaskTrackers are referred to as NodeManagers in the new framework.

Understanding where YARN fits into Hadoop

Finally, looking at the JobTracker redesign (in the following figure), we can clearly see that the JobTracker's responsibilities are broken into a per-cluster ResourceManager and a per-application ApplicationMaster:

Understanding where YARN fits into Hadoop

The ResourceManager topology can be seen as follows:

Understanding where YARN fits into Hadoop
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.211.134