Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 27187 invoked from network); 6 Jan 2011 17:51:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 17:51:11 -0000 Received: (qmail 13789 invoked by uid 500); 6 Jan 2011 17:51:11 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 13683 invoked by uid 500); 6 Jan 2011 17:51:11 -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 13578 invoked by uid 99); 6 Jan 2011 17:51:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 17:51:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 17:51:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06HolB8025478 for ; Thu, 6 Jan 2011 17:50:47 GMT Message-ID: <7319057.193141294336247219.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 12:50:47 -0500 (EST) From: "Tom White (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-2219) JT should not try to remove mapred.system.dir during startup In-Reply-To: <8691834.146741292451123583.JavaMail.jira@thor> 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-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978424#action_12978424 ] Tom White commented on MAPREDUCE-2219: -------------------------------------- > Unfortunately I couldn't use FileUtil.fullyDeleteContents because that method takes File and not Path/FileSystem. I see. The patch has tests for this code, so +1 (pending Hudson). > JT should not try to remove mapred.system.dir during startup > ------------------------------------------------------------ > > Key: MAPREDUCE-2219 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2219 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: jobtracker > Affects Versions: 0.22.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Attachments: mapreduce-2219.2.txt, mapreduce-2219.txt > > > During startup, the JT tries to clean up mapred.system.dir by recursively removing it and then recreating it. This requires that mapred.system.dir is inside a directory owned by the mapred user. For example, if set to /system/mapred then /system must be owned by the mapred account. This isn't documented properly and also seems unnecessary. Instead we can remove the *contents* of mapred.system.dir instead of the directory itself. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.