- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.samza.config.YarnConfig
类的一些代码示例,展示了YarnConfig
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YarnConfig
类的具体详情如下:
包路径:org.apache.samza.config.YarnConfig
类名称:YarnConfig
暂无
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
YarnClusterResourceManager(AMRMClientAsync amClientAsync, NMClientAsync nmClientAsync, Callback callback,
YarnAppState yarnAppState, SamzaYarnAppMasterLifecycle lifecycle, SamzaYarnAppMasterService service,
SamzaAppMasterMetrics metrics, YarnConfiguration yarnConfiguration, Config config) {
super(callback);
this.yarnConfiguration = yarnConfiguration;
this.metrics = metrics;
this.yarnConfig = new YarnConfig(config);
this.config = config;
this.amClient = amClientAsync;
this.state = yarnAppState;
this.lifecycle = lifecycle;
this.service = service;
this.nmClientAsync = nmClientAsync;
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public String getYarnJobStagingDirectory() {
return get(YARN_JOB_STAGING_DIRECTORY, null);
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public boolean getJmxServerEnabled() {
return getBoolean(AM_JMX_ENABLED, true);
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public int getAMContainerMaxMemoryMb() {
return getInt(AM_CONTAINER_MAX_MEMORY_MB, DEFAULT_AM_CONTAINER_MAX_MEMORY_MB);
}
代码示例来源:origin: org.apache.samza/samza-yarn
/**
* Helper function to get all application acls
* @return a map of {@link ApplicationAccessType} to {@link String} for all the acls defined
*/
public Map<ApplicationAccessType, String> getYarnApplicationAcls() {
Map<ApplicationAccessType, String> acls = new HashMap<>();
String viewAcl = getYarnApplicationViewAcl();
String modifyAcl = getYarnApplicationModifyAcl();
if (viewAcl != null) {
acls.put(ApplicationAccessType.VIEW_APP, viewAcl);
}
if (modifyAcl != null) {
acls.put(ApplicationAccessType.MODIFY_APP, modifyAcl);
}
return acls;
}
代码示例来源:origin: org.apache.samza/samza-yarn
YarnConfig yarnConfig = new YarnConfig(config);
this.yarnConfig = yarnConfig;
this.config = config;
int interval = yarnConfig.getAMPollIntervalMs();
代码示例来源:origin: org.apache.samza/samza-yarn
public long getYarnTokenRenewalIntervalSeconds() {
return getLong(YARN_TOKEN_RENEWAL_INTERVAL_SECONDS, DEFAULT_YARN_TOKEN_RENEWAL_INTERVAL_SECONDS);
}
代码示例来源:origin: org.apache.samza/samza-yarn
String containerLabel = yarnConfig.getContainerLabel();
String preferredHost = resourceRequest.getPreferredHost();
Resource capability = Resource.newInstance(memoryMb, cpuCores);
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
Path packagePath = new Path(yarnConfig.getPackagePath());
log.info("Starting container ID {} using package path {}", samzaContainerId, packagePath);
state.pendingYarnContainers.put(samzaContainerId, new YarnContainer(container));
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
Map<ApplicationAccessType, String> acls = yarnConfig.getYarnApplicationAcls();
if (!acls.isEmpty()) {
context.setApplicationACLs(acls);
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public int getAMContainerMaxCpuCores() {
return getInt(AM_CONTAINER_MAX_CPU_CORES, DEFAULT_AM_CPU_CORES);
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
/**
* Helper function to get all application acls
* @return a map of {@link ApplicationAccessType} to {@link String} for all the acls defined
*/
public Map<ApplicationAccessType, String> getYarnApplicationAcls() {
Map<ApplicationAccessType, String> acls = new HashMap<>();
String viewAcl = getYarnApplicationViewAcl();
String modifyAcl = getYarnApplicationModifyAcl();
if (viewAcl != null) {
acls.put(ApplicationAccessType.VIEW_APP, viewAcl);
}
if (modifyAcl != null) {
acls.put(ApplicationAccessType.MODIFY_APP, modifyAcl);
}
return acls;
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
YarnConfig yarnConfig = new YarnConfig(config);
this.yarnConfig = yarnConfig;
this.config = config;
int interval = yarnConfig.getAMPollIntervalMs();
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public long getYarnTokenRenewalIntervalSeconds() {
return getLong(YARN_TOKEN_RENEWAL_INTERVAL_SECONDS, DEFAULT_YARN_TOKEN_RENEWAL_INTERVAL_SECONDS);
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
String containerLabel = yarnConfig.getContainerLabel();
String preferredHost = resourceRequest.getPreferredHost();
Resource capability = Resource.newInstance(memoryMb, cpuCores);
代码示例来源:origin: org.apache.samza/samza-yarn
Path packagePath = new Path(yarnConfig.getPackagePath());
log.info("Starting container ID {} using package path {}", samzaContainerId, packagePath);
state.pendingYarnContainers.put(samzaContainerId, new YarnContainer(container));
代码示例来源:origin: org.apache.samza/samza-yarn
Map<ApplicationAccessType, String> acls = yarnConfig.getYarnApplicationAcls();
if (!acls.isEmpty()) {
context.setApplicationACLs(acls);
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public String getYarnApplicationModifyAcl() {
return get(YARN_APPLICATION_MODIFY_ACL, null);
}
代码示例来源:origin: org.apache.samza/samza-yarn_2.11
public int getAllocatorSleepTime() {
return getInt(ALLOCATOR_SLEEP_MS, DEFAULT_ALLOCATOR_SLEEP_MS);
}
代码示例来源:origin: org.apache.samza/samza-yarn
public boolean getJmxServerEnabled() {
return getBoolean(AM_JMX_ENABLED, true);
}
本文整理了Java中org.apache.samza.config.YarnConfig.getYarnJobStagingDirectory()方法的一些代码示例,展示了YarnConfig.get
本文整理了Java中org.apache.samza.config.YarnConfig.getYarnApplicationViewAcl()方法的一些代码示例,展示了YarnConfig.getY
本文整理了Java中org.apache.samza.config.YarnConfig.get()方法的一些代码示例,展示了YarnConfig.get()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中org.apache.samza.config.YarnConfig.getContainerLabel()方法的一些代码示例,展示了YarnConfig.getContainer
本文整理了Java中org.apache.samza.config.YarnConfig.getPackagePath()方法的一些代码示例,展示了YarnConfig.getPackagePath(
本文整理了Java中org.apache.samza.config.YarnConfig.()方法的一些代码示例,展示了YarnConfig.()的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中org.apache.samza.config.YarnConfig.getInt()方法的一些代码示例,展示了YarnConfig.getInt()的具体用法。这些代码示例主要来
本文整理了Java中org.apache.samza.config.YarnConfig.getYarnApplicationAcls()方法的一些代码示例,展示了YarnConfig.getYarn
本文整理了Java中org.apache.samza.config.YarnConfig.getAMPollIntervalMs()方法的一些代码示例,展示了YarnConfig.getAMPollI
本文整理了Java中org.apache.samza.config.YarnConfig.getLong()方法的一些代码示例,展示了YarnConfig.getLong()的具体用法。这些代码示例主
我是一名优秀的程序员,十分优秀!