Example usage for org.apache.hadoop.mapreduce MRConfig RESOURCE_CALCULATOR_PROCESS_TREE

List of usage examples for org.apache.hadoop.mapreduce MRConfig RESOURCE_CALCULATOR_PROCESS_TREE

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce MRConfig RESOURCE_CALCULATOR_PROCESS_TREE.

Prototype

String RESOURCE_CALCULATOR_PROCESS_TREE

To view the source code for org.apache.hadoop.mapreduce MRConfig RESOURCE_CALCULATOR_PROCESS_TREE.

Click Source Link

Usage

From source file:com.scaleoutsoftware.soss.hserver.hadoop.HadoopVersionSpecificCode_CDH5_2_YARN.java

License:Apache License

@Override
public void onJobInitialize(InvocationParameters parameters) throws IOException {
    //Take this chance to stub out ResourceCalculatorProcessTree
    parameters.getHadoopInvocationParameters().getConfiguration().setClass(
            MRConfig.RESOURCE_CALCULATOR_PROCESS_TREE, DummyResourceCalculatorProcessTree.class,
            ResourceCalculatorProcessTree.class);

    //Initialize the distributed cache
    DistributedCacheManager cacheManager = new DistributedCacheManager();
    cacheManager.setup(parameters.getHadoopInvocationParameters().getConfiguration());
    distributedCaches.put(parameters.getHadoopInvocationParameters().getJobID(), cacheManager);

    super.onJobInitialize(parameters);
}