Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 66913 invoked from network); 7 Feb 2008 10:53:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 10:53:31 -0000 Received: (qmail 65087 invoked by uid 500); 7 Feb 2008 10:53:23 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 65054 invoked by uid 500); 7 Feb 2008 10:53:23 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 65045 invoked by uid 99); 7 Feb 2008 10:53:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 02:53:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 10:53:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6A48714045 for ; Thu, 7 Feb 2008 02:53:07 -0800 (PST) Message-ID: <24437769.1202381587860.JavaMail.jira@brutus> Date: Thu, 7 Feb 2008 02:53:07 -0800 (PST) From: "Amareshwari Sri Ramadasu (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-2735) Setting default tmp directory for java createTempFile (java.io.tmpdir) In-Reply-To: <18112790.1201649195008.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amareshwari Sri Ramadasu updated HADOOP-2735: --------------------------------------------- Status: Patch Available (was: Open) Here is the patch with config item "mapred.child.tmp", with default value ./tmp. If the value of mapred.child.tmp is not absolute path, it is prepended with task's working directory. And task is run with option -Djava.io.tmpdir=. > 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 > > Attachments: patch-2735.txt, patch-2735.txt > > > 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.