Complete the code to set the YARN scheduler to Capacity Scheduler.
yarn.scheduler.class=[1]
The Capacity Scheduler class is org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler. This sets YARN to use Capacity Scheduler.
Complete the code to configure the Fair Scheduler policy in YARN.
yarn.scheduler.class=[1]
The Fair Scheduler class is org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler. This sets YARN to use Fair Scheduler.
Fix the error in the code to set the YARN scheduler to Priority Scheduler.
yarn.scheduler.class=[1]
The correct class for Priority Scheduler is org.apache.hadoop.yarn.server.resourcemanager.scheduler.PriorityScheduler. Other options are incorrect package paths.
Fill both blanks to create a dictionary mapping scheduler names to their class paths.
scheduler_classes = {'capacity': '[1]', 'fair': '[2]'}The dictionary maps 'capacity' to CapacityScheduler class and 'fair' to FairScheduler class.
Fill all three blanks to create a dictionary with scheduler names as keys, their class paths as values, and a filter for schedulers starting with 'org.apache.hadoop.yarn'.
schedulers = {k: v for k, v in {'capacity': '[1]', 'fair': '[2]', 'priority': '[3]'}.items() if v.startswith('org.apache.hadoop.yarn')}The dictionary includes CapacityScheduler, FairScheduler, and PriorityScheduler class paths. The filter keeps only those starting with 'org.apache.hadoop.yarn'.