gpt4 book ai didi

org.apache.hadoop.yarn.conf.YarnConfiguration.getClusterId()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 00:58:40 28 4
gpt4 key购买 nike

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

YarnConfiguration.getClusterId介绍

暂无

代码示例

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

@Override
protected void serviceInit(Configuration conf) throws Exception {
 rmId = HAUtil.getRMHAId(conf);
 String clusterId = YarnConfiguration.getClusterId(conf);
 String zkBasePath = conf.get(
   YarnConfiguration.AUTO_FAILOVER_ZK_BASE_PATH,
   YarnConfiguration.DEFAULT_AUTO_FAILOVER_ZK_BASE_PATH);
 latchPath = zkBasePath + "/" + clusterId;
 curator = rm.getCurator();
 initAndStartLeaderLatch();
 super.serviceInit(conf);
}

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

@Override
protected void serviceInit(Configuration conf) throws Exception {
 this.config = conf;
 RetryPolicy retryPolicy =
   FederationStateStoreFacade.createRetryPolicy(conf);
 this.stateStoreClient =
   (FederationStateStore) FederationStateStoreFacade.createRetryInstance(
     conf, YarnConfiguration.FEDERATION_STATESTORE_CLIENT_CLASS,
     YarnConfiguration.DEFAULT_FEDERATION_STATESTORE_CLIENT_CLASS,
     FederationStateStore.class, retryPolicy);
 this.stateStoreClient.init(conf);
 LOG.info("Initialized state store client class");
 this.subClusterId =
   SubClusterId.newInstance(YarnConfiguration.getClusterId(conf));
 heartbeatInterval = conf.getLong(
   YarnConfiguration.FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS,
   YarnConfiguration.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS);
 if (heartbeatInterval <= 0) {
  heartbeatInterval =
    YarnConfiguration.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS;
 }
 LOG.info("Initialized federation membership service.");
 super.serviceInit(conf);
}

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

String clusterId = YarnConfiguration.getClusterId(conf);
localActiveNodeInfo = createActiveNodeInfo(clusterId, rmId);

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

String clusterId = YarnConfiguration.getClusterId(conf);
localActiveNodeInfo = createActiveNodeInfo(clusterId, rmId);

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

String clusterId = YarnConfiguration.getClusterId(conf);
localActiveNodeInfo = createActiveNodeInfo(clusterId, rmId);

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

ApplicationId appId = this.attemptId.getApplicationId();
this.homeSubClusterId =
  SubClusterId.newInstance(YarnConfiguration.getClusterId(conf));
this.homeRMRelayer = new AMRMClientRelayer(createHomeRMProxy(appContext,
  ApplicationMasterProtocol.class, appOwner), appId,

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

String cId = YarnConfiguration.getClusterId(conf);
if (cId.isEmpty()) {
 String errMsg =

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com