Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 99162 invoked from network); 8 Feb 2010 10:36:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 10:36:51 -0000 Received: (qmail 608 invoked by uid 500); 8 Feb 2010 10:36:51 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 548 invoked by uid 500); 8 Feb 2010 10:36:51 -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 538 invoked by uid 99); 8 Feb 2010 10:36:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 10:36:51 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 10:36:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F3E73234C1F2 for ; Mon, 8 Feb 2010 02:36:27 -0800 (PST) Message-ID: <1915753475.118651265625387997.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Feb 2010 10:36:27 +0000 (UTC) From: "Amareshwari Sriramadasu (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-927) Cleanup of task-logs should happen in TaskTracker instead of the Child In-Reply-To: <353529923.1251455879295.JavaMail.jira@brutus> 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-927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830889#action_12830889 ] Amareshwari Sriramadasu commented on MAPREDUCE-927: --------------------------------------------------- I would propose the following to solve this: * Task logs directory hierarchy is currently userlogs/attemptid. Instead, it should be userlogs/jobid/attemptid. * TaskTracker has a thread for deleting task logs. Whenever TaskTracker gets a KillJobAction, it adds an entry (jobid, timestamp) to delete tasklogs i.e. (jobId, jobCompletionTime + userLogRetainsHours). userlogs/jobid directory will be deleted at/after the timestamp (jobCompletionTime + userLogretainshours). This says user logs will be maintained for userLogRetainsHours duration after the job completion. We can have userLogRetainsHours as a TaskTracker's parameter, since it controls the disk space of the tracker. Or we can have it as a job level parameter as it is now, since they are maintained for user to access. If it is a job level parameter, we would need a TaskTracker parameter as an upper bound for the job configuration to control the disk space. Thoughts? > Cleanup of task-logs should happen in TaskTracker instead of the Child > ---------------------------------------------------------------------- > > Key: MAPREDUCE-927 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-927 > Project: Hadoop Map/Reduce > Issue Type: Sub-task > Components: tasktracker > Affects Versions: 0.21.0 > Reporter: Vinod K V > Priority: Blocker > Fix For: 0.21.0 > > > Task logs' cleanup is being done in Child now. This is undesirable atleast for two reasons: 1) failures while cleaning up will affect the user's tasks, and 2) the task's wall time will get affected due to operations that TT actually should own. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.