Durga Gadiraju

Configure Fair Scheduler – Running jobs without Specifying Queue

First, let us run jobs without specifying any queue and see what happens. Submit the Long running job to production queue by using the below command. This job requires 279 containers. https://gist.github.com/dgadiraju/f6aa41383703a8b6bb3bb902a8726581 Submit the other job which requires only 18 containers to process the data. https://gist.github.com/dgadiraju/85c9d016bca952d4b1d5d52a828bff2f

Configure Fair Scheduler – Configure cluster with fair schedulers

Let us see how we can configure Fair Scheduler using Cloudera Manager. Log in to Cloudera Manager and go to YARN and then click on Configuration Search for “Scheduler” Select the property “yarn.resourcemanager.scheduler.class” to “org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler“ Add the XML file configuration in the property – “Fair Scheduler XML Advanced Configuration Snippet (Safety Valve)” https://gist.github.com/dgadiraju/413128425dd38afa43797f1efbea7fad And then …

Configure Fair Scheduler – Configure cluster with fair schedulers Read More »

Introduction to Fair Scheduler

Instead of waiting until long-running to be close to complete, resources will be allocated to all the subsequent jobs in Fair Manner. Available resources will be shared evenly between all the outstanding jobs. By default, Cloudera Hadoop Distribution uses Fair Scheduler. Configuration files related to the fair scheduler yarn-site.xml fair-scheduler.xml – allocation file To customize …

Introduction to Fair Scheduler Read More »

Schedulers Overview

Let us go through the overview of schedulers. YARN supports three types of Schedulers – FIFO Scheduler, Fair Scheduler, and Capacity Scheduler. FIFO Scheduler – default with plain vanilla Hadoop and typically used for exploratory purposes. Fair Scheduler – Resources will be allocated to all the subsequent jobs in Fair Manner, default with Cloudera distribution. Capacity Scheduler …

Schedulers Overview Read More »

Introduction

As part of this section, we will understand schedulers in YARN in detail. There are different schedulers – FIFO, Fair, and Capacity. Schedulers Overview FIFO Scheduler Introduction to Fair Scheduler Configure Fair Scheduler Fair Scheduler – examples Introduction to Capacity Scheduler Configure Capacity Scheduler Capacity Scheduler – examples