[
https://issues.apache.org/jira/browse/OOZIE-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569795#comment-14569795
]
Rohini Palaniswamy commented on OOZIE-2209:
-------------------------------------------
This patch sets java.io.tmpdir to ./tmp for AM, map and reduce for both
launcher and action jobs.
Actually found that MapReduceChildJVM already sets java.io.tmpdir to ./tmp
which takes care of mappers and reducers.
{code}
Path childTmpDir = new Path(Environment.PWD.$(),
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR);
vargs.add("-Djava.io.tmpdir=" + childTmpDir);
{code}
So it is only needed to be set for AM in launcher because of uber mode problems
mentioned in this jira. So filed OOZIE-2260 to revert part of this patch and
only do it for AM of the launcher.
Will be filing followup jiras with MAPREDUCE and TEZ to set java.io.tmpdir for
AM as well.
> Oozie launchers to set "java.io.tmpdir" to "./tmp"
> --------------------------------------------------
>
> Key: OOZIE-2209
> URL: https://issues.apache.org/jira/browse/OOZIE-2209
> Project: Oozie
> Issue Type: Improvement
> Reporter: Kailong Sheng
> Assignee: Kailong Sheng
> Fix For: 4.2
>
> Attachments: OOZIE-2209-1.patch
>
>
> We had couple of cases when pig launcher tried to create a relatively large
> job jar on /tmp/ and fail with not enough space.This can be avoided if the
> launcher used the current working directory which should have a lot more
> space. Also, it'll always get cleaned up by the NodeManager even if the task
> crashes in the middle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)