O'Reilly logo

Learning YARN by Shrey Mehrotra, Akhil Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Types of queues

As mentioned earlier in this chapter, YARN defines two schedulers (capacity and fair schedulers). These schedulers use their own implementation of the queue interface. The following diagram represents a class diagram for different queues defined in YARN:

Types of queues

CapacityScheduler Queue (CSQueue)

CSQueue is an interface that extends the Queue interface. It is defined in the org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity package. The CSQueue interface represents a queue structure for a node in the tree of hierarchical queues for CapacityScheduler.

The two classes that implement the CSQueue interface are as follows:

  • ParentQueue ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required