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

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

Introduction

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

Prototype

public long getMemoryForReduceTask() 

Source Link

Document

Get memory required to run a reduce 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.
 * /*from ww w. j a  v a  2 s . c o m*/
 * @param conf
 * @return
 */
public static long getRemoteMaxMemory(JobConf job) {
    return (1024 * 1024) * Math.max(job.getMemoryForMapTask(), job.getMemoryForReduceTask());
}