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 7A70517613 for ; Thu, 9 Oct 2014 23:32:34 +0000 (UTC) Received: (qmail 33092 invoked by uid 500); 9 Oct 2014 23:32:34 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 33025 invoked by uid 500); 9 Oct 2014 23:32:34 -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 33013 invoked by uid 99); 9 Oct 2014 23:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2014 23:32:34 +0000 Date: Thu, 9 Oct 2014 23:32:34 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-6009) Map-only job with new-api runs wrong OutputCommitter when cleanup scheduled in a reduce slot MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-6009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165985#comment-14165985 ] Sandy Ryza commented on MAPREDUCE-6009: --------------------------------------- Is this an issue in Hadoop 2 as well? > Map-only job with new-api runs wrong OutputCommitter when cleanup scheduled in a reduce slot > -------------------------------------------------------------------------------------------- > > Key: MAPREDUCE-6009 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6009 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: client, job submission > Affects Versions: 1.2.1 > Reporter: Gera Shegalov > Assignee: Gera Shegalov > Priority: Blocker > Attachments: MAPREDUCE-6009.v01-branch-1.2.patch > > > In branch 1 job commit is executed in a JOB_CLEANUP task that may run in either map or reduce slot > in org.apache.hadoop.mapreduce.Job#setUseNewAPI there is a logic setting new-api flag only for reduce-ful jobs. > {code} > if (numReduces != 0) { > conf.setBooleanIfUnset("mapred.reducer.new-api", > conf.get(oldReduceClass) == null); > ... > {code} > Therefore, when cleanup runs in a reduce slot, ReduceTask inits using the old API and runs incorrect default OutputCommitter, instead of consulting OutputFormat. -- This message was sent by Atlassian JIRA (v6.3.4#6332)