List of usage examples for org.apache.hadoop.mapred JobConf getMemoryForReduceTask
public long getMemoryForReduceTask()
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()); }