Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9F7F98FE for ; Fri, 10 Feb 2012 04:26:33 +0000 (UTC) Received: (qmail 72793 invoked by uid 500); 10 Feb 2012 04:26:33 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 71765 invoked by uid 500); 10 Feb 2012 04:26:27 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 71736 invoked by uid 99); 10 Feb 2012 04:26:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 04:26:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 04:26:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 809031AEF30 for ; Fri, 10 Feb 2012 04:25:59 +0000 (UTC) Date: Fri, 10 Feb 2012 04:25:59 +0000 (UTC) From: "Ahmed Radwan (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1826090197.23048.1328847959528.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1969144412.21742.1328827257353.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-3844) Problem in setting the childTmpDir in MapReduceChildJVM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-3844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205217#comment-13205217 ] Ahmed Radwan commented on MAPREDUCE-3844: ----------------------------------------- I did further testing and to compare this behavior on cdh, and I am seeing conflicting results for another test job which is not throwing this exception. So please hold on this patch until I confirm what is happening. > Problem in setting the childTmpDir in MapReduceChildJVM > ------------------------------------------------------- > > Key: MAPREDUCE-3844 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-3844 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 0.23.0, 0.23.1 > Reporter: Ahmed Radwan > Assignee: Ahmed Radwan > Priority: Blocker > Attachments: MAPREDUCE-3844.patch, MAPREDUCE-3844_rev2.patch > > > We have seen this issue during a Hive test. Where Hive tries to create a temp file using File.createTempFile(..) and it throws: > {code} > Exception in thread "main" java.io.IOException: No such file or directory > at java.io.UnixFileSystem.createFileExclusively(Native Method) > at java.io.File.checkAndCreate(File.java:1704) > at java.io.File.createTempFile(File.java:1792) > at java.io.File.createTempFile(File.java:1828) > at Test.main(Test.java:13) > {code} > Because it literally sees "$PWD/tmp" as the temp directory path. > $PWD need to be evaluated before being used in setting the property "java.io.tmpdir" in MapReduceChildJVM.java. -- 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