当前位置: 首页>>代码示例>>Java>>正文


Java QueueMetrics.clearQueueMetrics方法代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.clearQueueMetrics方法的典型用法代码示例。如果您正苦于以下问题:Java QueueMetrics.clearQueueMetrics方法的具体用法?Java QueueMetrics.clearQueueMetrics怎么用?Java QueueMetrics.clearQueueMetrics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics的用法示例。


在下文中一共展示了QueueMetrics.clearQueueMetrics方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  configuration = new Configuration();
  UserGroupInformation.setConfiguration(configuration);
  configuration.setBoolean(YarnConfiguration.RM_HA_ENABLED, true);
  configuration.set(YarnConfiguration.RM_HA_IDS, RM1_NODE_ID + ","
      + RM2_NODE_ID);
  for (String confKey : YarnConfiguration
      .getServiceAddressConfKeys(configuration)) {
    configuration.set(HAUtil.addSuffix(confKey, RM1_NODE_ID), RM1_ADDRESS);
    configuration.set(HAUtil.addSuffix(confKey, RM2_NODE_ID), RM2_ADDRESS);
    configuration.set(HAUtil.addSuffix(confKey, RM3_NODE_ID), RM3_ADDRESS);
  }

  // Enable webapp to test web-services also
  configuration.setBoolean(MockRM.ENABLE_WEBAPP, true);
  configuration.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, true);
  ClusterMetrics.destroy();
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:TestRMHA.java

示例2: setUp

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  configuration = new Configuration();
  UserGroupInformation.setConfiguration(configuration);
  configuration.setBoolean(YarnConfiguration.RM_HA_ENABLED, true);
  configuration.set(YarnConfiguration.RM_HA_IDS, RM1_NODE_ID + ","
      + RM2_NODE_ID);
  for (String confKey : YarnConfiguration
      .getServiceAddressConfKeys(configuration)) {
    configuration.set(HAUtil.addSuffix(confKey, RM1_NODE_ID), RM1_ADDRESS);
    configuration.set(HAUtil.addSuffix(confKey, RM2_NODE_ID), RM2_ADDRESS);
    configuration.set(HAUtil.addSuffix(confKey, RM3_NODE_ID), RM3_ADDRESS);
  }

  // Enable webapp to test web-services also
  configuration.setBoolean(MockRM.ENABLE_WEBAPP, true);
  configuration.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, true);

  RMStorageFactory.setConfiguration(configuration);
  YarnAPIStorageFactory.setConfiguration(configuration);
  DBUtility.InitializeDB();

  ClusterMetrics.destroy();
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:27,代码来源:TestRMHA.java

示例3: tearDown

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
  if (scheduler != null) {
    scheduler.stop();
    scheduler = null;
  }
  if (resourceManager != null) {
    resourceManager.stop();
    resourceManager = null;
  }
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:TestFairScheduler.java

示例4: tearDown

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
  conf = null;
  reservationSystem = null;
  rmContext = null;
  scheduler = null;
  clearRMContext();
  QueueMetrics.clearQueueMetrics();
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:10,代码来源:TestReservationSystem.java

示例5: tearDown

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
  if (resourceManager != null) {
    resourceManager.stop();
    resourceManager = null;
  }
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:10,代码来源:TestAppRunnability.java

示例6: reinitialize

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
void reinitialize(boolean initialize) throws Exception {
  ClusterMetrics.destroy();
  QueueMetrics.clearQueueMetrics();
  if (initialize) {
    resetDispatcher();
    createAndInitActiveServices();
  }
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:9,代码来源:ResourceManager.java

示例7: tearDown

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
  scheduler = null;
  resourceManager = null;
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:8,代码来源:TestFairScheduler.java

示例8: reinitialize

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
void reinitialize(boolean initialize) throws Exception {
  ClusterMetrics.destroy();
  QueueMetrics.clearQueueMetrics();
  if (initialize) {
    resetDispatcher();
    createAndInitSchedulerServices();
    if (rmContext.isDistributed()) {
      resourceTrackingService.start();
    }
  }
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:12,代码来源:ResourceManager.java

示例9: stopActiveServices

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
/**
 * Helper method to stop {@link #activeServices}.
 * @throws Exception
 */
void stopActiveServices() throws Exception {
  if (activeServices != null) {
    activeServices.stop();
    activeServices = null;
    rmContext.getRMNodes().clear();
    rmContext.getInactiveRMNodes().clear();
    rmContext.getRMApps().clear();
    ClusterMetrics.destroy();
    QueueMetrics.clearQueueMetrics();
  }
}
 
开发者ID:Seagate,项目名称:hadoop-on-lustre2,代码行数:16,代码来源:ResourceManager.java

示例10: tearDown

import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
  ClusterMetrics.destroy();
  QueueMetrics.clearQueueMetrics();
  DefaultMetricsSystem.shutdown();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:TestRM.java


注:本文中的org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.clearQueueMetrics方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。