Example usage for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES

List of usage examples for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES.

Prototype

int DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES

To view the source code for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES.

Click Source Link

Usage

From source file:de.huberlin.wbi.hiway.scheduler.ma.MemoryAware.java

License:Apache License

@Override
public void init(HiWayConfiguration conf_, FileSystem hdfs_, int containerMemory_,
        Map<String, Integer> customMemoryMap_, int containerCores_, int requestPriority_) {
    super.init(conf_, hdfs_, containerMemory_, customMemoryMap_, containerCores_, requestPriority_);
    maxMem = conf.getInt(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB,
            YarnConfiguration.DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_MB);
    maxCores = conf.getInt(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES,
            YarnConfiguration.DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES);
}