use of org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.preemption.PreemptableQueue in project hadoop by apache.
the class ProportionalCapacityPreemptionPolicy method syncKillableContainersFromScheduler.
private void syncKillableContainersFromScheduler() {
// sync preemptable entities from scheduler
preemptableQueues = scheduler.getPreemptionManager().getShallowCopyOfPreemptableQueues();
killableContainers = new HashSet<>();
for (Map.Entry<String, PreemptableQueue> entry : preemptableQueues.entrySet()) {
PreemptableQueue entity = entry.getValue();
for (Map<ContainerId, RMContainer> map : entity.getKillableContainers().values()) {
killableContainers.addAll(map.keySet());
}
}
}
Aggregations