Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 79129 invoked from network); 4 Jun 2008 19:51:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 19:51:10 -0000 Received: (qmail 305 invoked by uid 500); 4 Jun 2008 19:51:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 280 invoked by uid 500); 4 Jun 2008 19:51:11 -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 269 invoked by uid 99); 4 Jun 2008 19:51:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 12:51:11 -0700 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; Wed, 04 Jun 2008 19:50:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A2BD234C137 for ; Wed, 4 Jun 2008 12:50:45 -0700 (PDT) Message-ID: <1838242541.1212609045302.JavaMail.jira@brutus> Date: Wed, 4 Jun 2008 12:50:45 -0700 (PDT) From: "Owen O'Malley (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3150) Move task file promotion into the task In-Reply-To: <1005772078.1207083747584.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-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602435#action_12602435 ] Owen O'Malley commented on HADOOP-3150: --------------------------------------- Which leads back to the fact that I'm pretty uncomfortable with such a big change to the APIs this close the freeze date. The current OutputFormat method names are very file system specific. I'd prefer something like: {code} public class JobContext { public JobConf getJobConf(); } public class TaskAttemptContext { public TaskAttemptID getTaskAttemptID(); public JobConf getJobConf(); public Progressable getProgressable(); } public abstract class OutputFormat { abstract public RecordWriter getRecordWriter(TaskAttemptContext context ) throws IOException; abstract public void checkOutputSpecs(JobContext context) throws IOException; public abstract setupJob(JobContext context) throws IOException; public abstract cleanupJob(JobContext context, boolean promote) throws IOException; public abstract setupTask(TaskAttemptContext context) throws IOException; public abstract cleanupTask(TaskAttemptContext context, boolean promote) throws IOException; } {code} At that point, you might as well move OutputFormat over to org.apache.hadoop.mapreduce and deprecate the old interface. I don't think having the TaskTracker rpc handler (handling a call from the task) block on a call to the JobTracker is workable. > Move task file promotion into the task > -------------------------------------- > > Key: HADOOP-3150 > URL: https://issues.apache.org/jira/browse/HADOOP-3150 > Project: Hadoop Core > Issue Type: Improvement > Components: mapred > Reporter: Owen O'Malley > Assignee: Devaraj Das > Fix For: 0.18.0 > > Attachments: 3150.patch > > > We need to move the task file promotion from the JobTracker to the Task and move it down into the output format. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.