gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-18 01:38:40 25 4
gpt4 key购买 nike

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

YarnConfiguration.getLong介绍

暂无

代码示例

代码示例来源:origin: apache/flink

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
  YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
  YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

代码示例来源:origin: apache/flink

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
    YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
    YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

代码示例来源:origin: linkedin/TonY

private void createYarnClient() {
 if (this.yarnConfAddress != null) {
  this.yarnConf.addResource(new Path(this.yarnConfAddress));
 }
 if (this.hdfsConfAddress != null) {
  this.hdfsConf.addResource(new Path(this.hdfsConfAddress));
 }
 int numRMConnectRetries = tonyConf.getInt(TonyConfigurationKeys.RM_CLIENT_CONNECT_RETRY_MULTIPLIER,
   TonyConfigurationKeys.DEFAULT_RM_CLIENT_CONNECT_RETRY_MULTIPLIER);
 long rmMaxWaitMS = yarnConf.getLong(YarnConfiguration.RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS,
   YarnConfiguration.DEFAULT_RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS) * numRMConnectRetries;
 yarnConf.setLong(YarnConfiguration.RESOURCEMANAGER_CONNECT_MAX_WAIT_MS, rmMaxWaitMS);
 if (System.getenv(Constants.HADOOP_CONF_DIR) != null) {
  hdfsConf.addResource(new Path(System.getenv(Constants.HADOOP_CONF_DIR) + File.separatorChar + Constants.CORE_SITE_CONF));
  yarnConf.addResource(new Path(System.getenv(Constants.HADOOP_CONF_DIR) + File.separatorChar + Constants.CORE_SITE_CONF));
  hdfsConf.addResource(new Path(System.getenv(Constants.HADOOP_CONF_DIR) + File.separatorChar + Constants.HDFS_SITE_CONF));
 }
 yarnClient = YarnClient.createYarnClient();
 yarnClient.init(yarnConf);
}

代码示例来源:origin: org.apache.flink/flink-yarn_2.11

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
  YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
  YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

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

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
  YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
  YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

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

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
    YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
    YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

代码示例来源:origin: org.apache.flink/flink-yarn_2.11

YarnConfigOptions.HEARTBEAT_DELAY_SECONDS) * 1000;
final long yarnExpiryIntervalMS = yarnConfig.getLong(
    YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
    YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);

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

long renewalInterval = yarnConfig.getLong(DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_RENEW_INTERVAL_KEY,
                     DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);

代码示例来源:origin: apache/twill

long renewalInterval = yarnConfig.getLong(DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_RENEW_INTERVAL_KEY,
                     DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);

代码示例来源:origin: com.cloudera.llama/llama

long renewInterval = yarnConf.getLong(YarnConfiguration
  .DELEGATION_TOKEN_MAX_LIFETIME_KEY,
  YarnConfiguration.DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);

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