You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2010/07/16 12:14:51 UTC

[jira] Commented: (MAPREDUCE-1207) Allow admins to set java options for map/reduce tasks

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

Alejandro Abdelnur commented on MAPREDUCE-1207:
-----------------------------------------------

A simple solution by configuration changes would be setting the following defaults:

mapred.child.java.opts.admin.pre=-Xmx512m
mapred.child.java.opts.user=
mapred.child.java.opts.admin.post=
mapred.child.java.opts=${mapred.child.java.opts.admin.pre}${mapred.child.java.opts.user}${mapred.child.java.opts.admin.post}

Cluster admins can set the 'admin.pre' and 'admin.post' properties to required values and make them final.

Users can still set values using the 'user' property.

The down side of this approach is that we are changing the current contract.


> Allow admins to set java options for map/reduce tasks
> -----------------------------------------------------
>
>                 Key: MAPREDUCE-1207
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1207
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: client
>            Reporter: Arun C Murthy
>
> It will be useful for allow cluster-admins to set some java options for child map/reduce tasks. 
> E.g. We've had to ask users to set -Djava.net.preferIPv4Stack=true in their jobs, it would be nice to do it for all users in such scenarios even when people override mapred.child.{map|reduce}.java.opts but forget to add this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.