本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例7: tearDown
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
scheduler = null;
resourceManager = null;
QueueMetrics.clearQueueMetrics();
DefaultMetricsSystem.shutdown();
}
示例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();
}
}
}
示例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();
}
}
示例10: tearDown
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; //导入方法依赖的package包/类
@After
public void tearDown() {
ClusterMetrics.destroy();
QueueMetrics.clearQueueMetrics();
DefaultMetricsSystem.shutdown();
}