• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java RemoveFromClusterNodeLabelsResponse类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse的典型用法代码示例。如果您正苦于以下问题:Java RemoveFromClusterNodeLabelsResponse类的具体用法?Java RemoveFromClusterNodeLabelsResponse怎么用?Java RemoveFromClusterNodeLabelsResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

RemoveFromClusterNodeLabelsResponse类属于org.apache.hadoop.yarn.server.api.protocolrecords包,在下文中一共展示了RemoveFromClusterNodeLabelsResponse类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: removeFromClusterNodeLabels

点赞 3

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException {
  String argName = "removeFromClusterNodeLabels";
  final String msg = "remove labels.";
  UserGroupInformation user = checkAcls(argName);

  checkRMStatus(user.getShortUserName(), argName, msg);

  RemoveFromClusterNodeLabelsResponse response =
      recordFactory.newRecordInstance(RemoveFromClusterNodeLabelsResponse.class);
  try {
    rmContext.getNodeLabelManager().removeFromClusterNodeLabels(request.getNodeLabels());
    RMAuditLogger
        .logSuccess(user.getShortUserName(), argName, "AdminService");
    return response;
  } catch (IOException ioe) {
    throw logAndWrapException(ioe, user.getShortUserName(), argName, msg);
  }
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:21,
代码来源:AdminService.java

示例2: removeFromClusterNodeLabels

点赞 3

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException {
  String operation = "removeFromClusterNodeLabels";
  final String msg = "remove labels.";

  UserGroupInformation user = checkAcls(operation);

  checkRMStatus(user.getShortUserName(), operation, msg);

  RemoveFromClusterNodeLabelsResponse response =
      recordFactory.newRecordInstance(RemoveFromClusterNodeLabelsResponse.class);
  try {
    rmContext.getNodeLabelManager().removeFromClusterNodeLabels(request.getNodeLabels());
    RMAuditLogger
        .logSuccess(user.getShortUserName(), operation, "AdminService");
    return response;
  } catch (IOException ioe) {
    throw logAndWrapException(ioe, user.getShortUserName(), operation, msg);
  }
}
 

开发者ID:aliyun-beta,
项目名称:aliyun-oss-hadoop-fs,
代码行数:22,
代码来源:AdminService.java

示例3: removeFromClusterNodeLabels

点赞 3

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException {
  final String operation = "removeFromClusterNodeLabels";
  final String msg = "remove labels.";

  UserGroupInformation user = checkAcls(operation);

  checkRMStatus(user.getShortUserName(), operation, msg);

  RemoveFromClusterNodeLabelsResponse response =
      recordFactory.newRecordInstance(RemoveFromClusterNodeLabelsResponse.class);
  try {
    rmContext.getNodeLabelManager().removeFromClusterNodeLabels(request.getNodeLabels());
    RMAuditLogger
        .logSuccess(user.getShortUserName(), operation, "AdminService");
    return response;
  } catch (IOException ioe) {
    throw logAndWrapException(ioe, user.getShortUserName(), operation, msg);
  }
}
 

开发者ID:hopshadoop,
项目名称:hops,
代码行数:22,
代码来源:AdminService.java

示例4: removeFromClusterNodeLabels

点赞 2

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException,
    IOException {
  RemoveFromClusterNodeLabelsRequestProto requestProto =
      ((RemoveFromClusterNodeLabelsRequestPBImpl) request).getProto();
  try {
    return new RemoveFromClusterNodeLabelsResponsePBImpl(
        proxy.removeFromClusterNodeLabels(null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:15,
代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java

示例5: removeFromClusterNodeLabels

点赞 2

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException {
  String argName = "removeFromClusterNodeLabels";
  UserGroupInformation user = checkAcls(argName);

  if (!isRMActive()) {
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService",
        "ResourceManager is not active. Can not remove labels.");
    throwStandbyException();
  }

  RemoveFromClusterNodeLabelsResponse response =
      recordFactory.newRecordInstance(RemoveFromClusterNodeLabelsResponse.class);
  try {
    rmContext.getNodeLabelManager().removeFromClusterNodeLabels(request.getNodeLabels());
    RMAuditLogger
        .logSuccess(user.getShortUserName(), argName, "AdminService");
    return response;
  } catch (IOException ioe) {
    LOG.info("Exception remove labels", ioe);
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService", "Exception remove label");
    throw RPCUtil.getRemoteException(ioe);
  }
}
 

开发者ID:Nextzero,
项目名称:hadoop-2.6.0-cdh5.4.3,
代码行数:28,
代码来源:AdminService.java

示例6: removeFromClusterNodeLabels

点赞 2

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Public
@Evolving
@Idempotent
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException;
 

开发者ID:naver,
项目名称:hadoop,
代码行数:6,
代码来源:ResourceManagerAdministrationProtocol.java

示例7: removeFromClusterNodeLabels

点赞 2

import org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse; //导入依赖的package包/类
@Private
@Idempotent
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException;
 

开发者ID:aliyun-beta,
项目名称:aliyun-oss-hadoop-fs,
代码行数:5,
代码来源:ResourceManagerAdministrationProtocol.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)