converting map task memory from mb to bytes
This commit is contained in:
committed by
vinoth chandar
parent
9cce9abf4d
commit
af46078a82
@@ -361,8 +361,9 @@ public abstract class AbstractRealtimeRecordReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public long getMaxCompactionMemoryInBytes() {
|
public long getMaxCompactionMemoryInBytes() {
|
||||||
|
// jobConf.getMemoryForMapTask() returns in MB
|
||||||
return (long) Math.ceil(Double
|
return (long) Math.ceil(Double
|
||||||
.valueOf(jobConf.get(COMPACTION_MEMORY_FRACTION_PROP, DEFAULT_COMPACTION_MEMORY_FRACTION))
|
.valueOf(jobConf.get(COMPACTION_MEMORY_FRACTION_PROP, DEFAULT_COMPACTION_MEMORY_FRACTION))
|
||||||
* jobConf.getMemoryForMapTask());
|
* jobConf.getMemoryForMapTask() * 1024 * 1024L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user