[
https://issues.apache.org/jira/browse/MAPREDUCE-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193577#comment-13193577
]
Vinod Kumar Vavilapalli commented on MAPREDUCE-3716:
----------------------------------------------------
Patch looks fine overall.
For MR case, we already have "mapreduce.task.tmp.dir". Ideally we will want to
support this, but that seems too much of a change to me as it needs to passed
as part of each container-request. Not much of use anyways.
I guess we can live with "./tmp". In that case, we should
- definitely remove "mapreduce.task.tmp.dir" from mapped-default.xml
- declare this a YARN level constant and use this throughout -
MapReduceChildJVM, DefaultContainerExecutor
- emit a warning in JobClient if someone configures it to be other than
"./tmp".
Also, a test for this is useful, please see if you can port
{{TestMiniMRChildTask}} to MiniMRYarnCluster.
> java.io.File.createTempFile fails in map/reduce tasks
> -----------------------------------------------------
>
> Key: MAPREDUCE-3716
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3716
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Jonathan Eagles
> Assignee: Jonathan Eagles
> Priority: Blocker
> Attachments: MAPREDUCE-3716.patch, TestRandomWriter.patch
>
>
> container-launch.sh specifies java option java.io.tmpdir when executing the
> java process for the child container but fails to create the tmpdir. All uses
> of createTempFile and other commands relying on java.io.tmpdir will fail when
> called from child container jvms.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira