[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sam liu updated MAPREDUCE-6205:
-------------------------------
    Affects Version/s: trunk
               Status: Patch Available  (was: Open)

If we only set value "-Xms32m -Xmx1G" to the deprecated property 
"mapred.child.java.opts" before MR job execution:
- Without this patch, during map/reduce tasks execution, we can NOT get correct 
value of MRJobConfig.MAP_JAVA_OPTS and MRJobConfig.REDUCE_JAVA_OPTS, but get 
null value:
MAPRED_TASK_JAVA_OPTS=-Xms32m -Xmx1G
MRJobConfig.MAP_JAVA_OPTS=null
MRJobConfig.REDUCE_JAVA_OPTS=null

- With this patch, during map/reduce tasks execution, we can get correct value 
of them:
MAPRED_TASK_JAVA_OPTS=-Xms32m -Xmx1G
MRJobConfig.MAP_JAVA_OPTS=-Xms32m -Xmx1G
MRJobConfig.REDUCE_JAVA_OPTS=-Xms32m -Xmx1G

> Updated the value of the new version properties of the deprecated property 
> "mapred.child.java.opts"
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6205
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6205
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: trunk
>            Reporter: sam liu
>            Assignee: sam liu
>            Priority: Minor
>         Attachments: MAPREDUCE-6205.patch
>
>
> In current hadoop code, the old property "mapred.child.java.opts" is 
> deprecated and its new versions are MRJobConfig.MAP_JAVA_OPTS and 
> MRJobConfig.REDUCE_JAVA_OPTS. However, when user set a value to the 
> deprecated property "mapred.child.java.opts", hadoop won't automatically 
> update its new versions properties 
> MRJobConfig.MAP_JAVA_OPTS("mapreduce.map.java.opts") and 
> MRJobConfig.REDUCE_JAVA_OPTS("mapreduce.reduce.java.opts"). As hadoop will 
> update the new version properties for many other deprecated properties, we 
> also should support such feature on the old property 
> "mapred.child.java.opts", otherwise it might bring some imcompatible issues.



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

Reply via email to