MAPREDUCE-6204. TestJobCounters should use new properties instead of JobConf.MAPRED_TASK_JAVA_OPTS.

(cherry picked from commit b27ce3c531)
This commit is contained in:
Tsuyoshi Ozawa 2015-05-22 23:29:53 +09:00
parent 19895a41ad
commit 6042b53a74
2 changed files with 6 additions and 2 deletions

View File

@ -167,6 +167,9 @@ Release 2.8.0 - UNRELEASED
avoid FileNotFoundException causing HistoryFileInfo into MOVE_FAILED state.
(zhihai xu via devaraj)
MAPREDUCE-6204. TestJobCounters should use new properties instead of
JobConf.MAPRED_TASK_JAVA_OPTS. (Sam Liu via ozawa)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -611,8 +611,9 @@ public class TestJobCounters {
jobConf.setOutputValueClass(Text.class);
jobConf.setMaxMapAttempts(1);
jobConf.setMaxReduceAttempts(1);
jobConf.set(JobConf.MAPRED_TASK_JAVA_OPTS, heapOptions);
jobConf.set(JobConf.MAPRED_MAP_TASK_JAVA_OPTS, heapOptions);
jobConf.set(JobConf.MAPRED_REDUCE_TASK_JAVA_OPTS, heapOptions);
// set the targets
jobConf.setLong(MemoryLoaderMapper.TARGET_VALUE, targetMapValue);
jobConf.setLong(MemoryLoaderReducer.TARGET_VALUE, targetReduceValue);