[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14257845#comment-14257845
 ] 

sam liu commented on MAPREDUCE-6204:
------------------------------------

Gera,

I see, but could you please help explain why the map/reduce tasks could not get 
expected value of MAPRED_MAP_TASK_JAVA_OPTS and MAPRED_REDUCE_TASK_JAVA_OPTS, 
but only return 'null' in the test?

I added following code to get the property value during map/reduce task 
execution in TestJobCounters#MemoryLoaderMapper#configure() and 
TestJobCounters#MemoryLoaderReducer#configure():
      System.out.println("MAPRED_TASK_JAVA_OPTS=" + 
conf.get(JobConf.MAPRED_TASK_JAVA_OPTS));
      System.out.println("MAPRED_MAP_TASK_JAVA_OPTS=" + 
conf.get(JobConf.MAPRED_MAP_TASK_JAVA_OPTS));
      System.out.println("MAPRED_REDUCE_TASK_JAVA_OPTS=" + 
conf.get(JobConf.MAPRED_REDUCE_TASK_JAVA_OPTS));

> TestJobCounters should use new properties instead 
> JobConf.MAPRED_TASK_JAVA_OPTS
> -------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6204
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6204
>             Project: Hadoop Map/Reduce
>          Issue Type: Test
>          Components: test
>    Affects Versions: 2.6.0
>            Reporter: sam liu
>            Assignee: sam liu
>            Priority: Minor
>         Attachments: MAPREDUCE-6204-1.patch, MAPREDUCE-6204.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to