hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sri Ramadasu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2735) Setting default tmp directory for java createTempFile (java.io.tmpdir)
Date Tue, 05 Feb 2008 12:08:11 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565718#action_12565718

Amareshwari Sri Ramadasu commented on HADOOP-2735:

Yes. You can add -Djava.io.tmpdir=./tmp as part of mapred.child.java.opts. Moreover, mapred.child.java.opts
can take many values space seperated, like
  <value>-Xmx200m -Djava.io.tmpdir=./tmp</value>

But, the working directory of task doesnot have a 'tmp' directory already. I'm uploading a
patch which will create it.

Koji, can you confirm whether this is what you wanted ? I tested this creating a temporary
file in ./tmp from the map task.

> Setting default tmp directory for java createTempFile (java.io.tmpdir)
> ----------------------------------------------------------------------
>                 Key: HADOOP-2735
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2735
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: mapred
>            Reporter: Koji Noguchi
>            Assignee: Amareshwari Sri Ramadasu
>            Priority: Critical
>             Fix For: 0.16.1
> On our cluster, we've seen Pig(http://incubator.apache.org/pig/) filling up the /tmp
and failing. 
> (also inefficient since all the local tasks were spilling to the  same disk)
> Pig is simply using java api createTempFile, 
> http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File
> Can we add -Djava.io.tmpdir="./tmp" somewhere ?
> so that, 
> 1) Tasks can utilize all disks when using tmp
> 2) Any undeleted tmp files will be deleted by the tasktracker when task(job?) is done.
> The easiest way is to set it inside mapred.child.java.opts in the config, but this can
be overwritten if the users set their own task heapsize.

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

View raw message