org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationConfiguration.getDefaultSchedulingPolicy()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationConfiguration.getDefaultSchedulingPolicy()方法的一些代码示例,展示了AllocationConfiguration.getDefaultSchedulingPolicy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AllocationConfiguration.getDefaultSchedulingPolicy()方法的具体详情如下:
包路径:org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationConfiguration
类名称:AllocationConfiguration
方法名:getDefaultSchedulingPolicy

AllocationConfiguration.getDefaultSchedulingPolicy介绍

暂无

代码示例

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

@Override
 public void onReload(AllocationConfiguration queueInfo) {
  // Commit the reload; also create any queue defined in the alloc file
  // if it does not already exist, so it can be displayed on the web UI.
  synchronized (FairScheduler.this) {
   allocConf = queueInfo;
   allocConf.getDefaultSchedulingPolicy().initialize(clusterResource);
   queueMgr.updateAllocationConfiguration(allocConf);
   maxRunningEnforcer.updateRunnabilityOnReload();
  }
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

@Override
 public void onReload(AllocationConfiguration queueInfo) {
  // Commit the reload; also create any queue defined in the alloc file
  // if it does not already exist, so it can be displayed on the web UI.
  synchronized (FairScheduler.this) {
   allocConf = queueInfo;
   allocConf.getDefaultSchedulingPolicy().initialize(clusterResource);
   queueMgr.updateAllocationConfiguration(allocConf);
   maxRunningEnforcer.updateRunnabilityOnReload();
  }
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

leafQueue = new FSLeafQueue(name, scheduler, parent);
try {
 leafQueue.setPolicy(queueConf.getDefaultSchedulingPolicy());
} catch (AllocationConfigurationException ex) {
 LOG.warn("Failed to set default scheduling policy "
   + queueConf.getDefaultSchedulingPolicy() + " on new leaf queue.", ex);
FSParentQueue newParent = new FSParentQueue(queueName, scheduler, parent);
try {
 newParent.setPolicy(queueConf.getDefaultSchedulingPolicy());
} catch (AllocationConfigurationException ex) {
 LOG.warn("Failed to set default scheduling policy "
   + queueConf.getDefaultSchedulingPolicy() + " on new parent queue.", ex);

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

leafQueue = new FSLeafQueue(name, scheduler, parent);
try {
 leafQueue.setPolicy(queueConf.getDefaultSchedulingPolicy());
} catch (AllocationConfigurationException ex) {
 LOG.warn("Failed to set default scheduling policy "
   + queueConf.getDefaultSchedulingPolicy() + " on new leaf queue.", ex);
FSParentQueue newParent = new FSParentQueue(queueName, scheduler, parent);
try {
 newParent.setPolicy(queueConf.getDefaultSchedulingPolicy());
} catch (AllocationConfigurationException ex) {
 LOG.warn("Failed to set default scheduling policy "
   + queueConf.getDefaultSchedulingPolicy() + " on new parent queue.", ex);

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

@Override
public void onReload(AllocationConfiguration queueInfo)
  throws IOException {
 // Commit the reload; also create any queue defined in the alloc file
 // if it does not already exist, so it can be displayed on the web UI.
 Set<String> removedStaticQueues = getRemovedStaticQueues(queueInfo);
 writeLock.lock();
 try {
  if (queueInfo == null) {
   authorizer.setPermission(allocsLoader.getDefaultPermissions(),
     UserGroupInformation.getCurrentUser());
  } else {
   allocConf = queueInfo;
   setQueueAcls(allocConf.getQueueAcls());
   allocConf.getDefaultSchedulingPolicy().initialize(getContext());
   queueMgr.updateAllocationConfiguration(allocConf);
   queueMgr.setQueuesToDynamic(removedStaticQueues);
   applyChildDefaults();
   maxRunningEnforcer.updateRunnabilityOnReload();
  }
 } finally {
  writeLock.unlock();
 }
}

相关文章

微信公众号

最新文章

更多