org.apache.hadoop.yarn.api.ApplicationClientProtocol.getNodeToLabels()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(138)

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

ApplicationClientProtocol.getNodeToLabels介绍

[英]The interface used by client to get node to labels mappings in existing cluster
[中]客户端用于在现有集群中获取节点到标签映射的接口

代码示例

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

@Override
public GetNodesToLabelsResponse getNodeToLabels(
  GetNodesToLabelsRequest request) throws YarnException, IOException {
 return clientRMProxy.getNodeToLabels(request);
}

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

@Override
public Map<NodeId, Set<String>> getNodeToLabels() throws YarnException,
  IOException {
 return rmClient.getNodeToLabels(GetNodesToLabelsRequest.newInstance())
   .getNodeToLabels();
}

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

@Override
public Map<NodeId, Set<String>> getNodeToLabels() throws YarnException,
  IOException {
 return rmClient.getNodeToLabels(GetNodesToLabelsRequest.newInstance())
   .getNodeToLabels();
}

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

@Override
public Map<NodeId, Set<String>> getNodeToLabels() throws YarnException,
  IOException {
 return rmClient.getNodeToLabels(GetNodesToLabelsRequest.newInstance())
   .getNodeToLabels();
}

代码示例来源:origin: io.hops/hadoop-yarn-client

@Override
public Map<NodeId, Set<String>> getNodeToLabels() throws YarnException,
  IOException {
 return rmClient.getNodeToLabels(GetNodesToLabelsRequest.newInstance())
   .getNodeToLabels();
}

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

@Override
public GetNodesToLabelsResponseProto getNodeToLabels(
  RpcController controller, GetNodesToLabelsRequestProto proto)
  throws ServiceException {
 GetNodesToLabelsRequestPBImpl request =
   new GetNodesToLabelsRequestPBImpl(proto);
 try {
  GetNodesToLabelsResponse response = real.getNodeToLabels(request);
  return ((GetNodesToLabelsResponsePBImpl) response).getProto();
 } catch (YarnException e) {
  throw new ServiceException(e);
 } catch (IOException e) {
  throw new ServiceException(e);
 }
}

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

@Override
public GetNodesToLabelsResponseProto getNodeToLabels(
  RpcController controller, GetNodesToLabelsRequestProto proto)
  throws ServiceException {
 GetNodesToLabelsRequestPBImpl request =
   new GetNodesToLabelsRequestPBImpl(proto);
 try {
  GetNodesToLabelsResponse response = real.getNodeToLabels(request);
  return ((GetNodesToLabelsResponsePBImpl) response).getProto();
 } catch (YarnException e) {
  throw new ServiceException(e);
 } catch (IOException e) {
  throw new ServiceException(e);
 }
}

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

@Override
public GetNodesToLabelsResponseProto getNodeToLabels(
  RpcController controller, GetNodesToLabelsRequestProto proto)
  throws ServiceException {
 GetNodesToLabelsRequestPBImpl request =
   new GetNodesToLabelsRequestPBImpl(proto);
 try {
  GetNodesToLabelsResponse response = real.getNodeToLabels(request);
  return ((GetNodesToLabelsResponsePBImpl) response).getProto();
 } catch (YarnException e) {
  throw new ServiceException(e);
 } catch (IOException e) {
  throw new ServiceException(e);
 }
}

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

client.getNodeToLabels(GetNodesToLabelsRequest.newInstance());
Map<NodeId, Set<String>> nodeToLabels = response1.getNodeToLabels();
Assert.assertTrue(nodeToLabels.keySet().containsAll(

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

.getNodeToLabels(GetNodesToLabelsRequest.newInstance());
Map<NodeId, Set<String>> nodeToLabels = response1.getNodeToLabels();
Assert.assertTrue(nodeToLabels.keySet().containsAll(

相关文章

微信公众号

最新文章

更多

ApplicationClientProtocol类方法