Example usage for org.apache.hadoop.mapred JobConf getMemoryForMapTask

List of usage examples for org.apache.hadoop.mapred JobConf getMemoryForMapTask

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobConf getMemoryForMapTask.

Prototype

public long getMemoryForMapTask() 

Source Link

Document

Get memory required to run a map task of the job, in MB.

Usage

From source file:com.ibm.bi.dml.runtime.controlprogram.parfor.stat.InfrastructureAnalyzer.java

License:Open Source License

/**
 * Gets the maximum memory requirement [in bytes] of a given hadoop job.
 * //ww  w .  j  a va  2s . c o  m
 * @param conf
 * @return
 */
public static long getRemoteMaxMemory(JobConf job) {
    return (1024 * 1024) * Math.max(job.getMemoryForMapTask(), job.getMemoryForReduceTask());
}