Return-Path: X-Original-To: apmail-tez-commits-archive@minotaur.apache.org Delivered-To: apmail-tez-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0ECB011221 for ; Wed, 14 May 2014 16:03:42 +0000 (UTC) Received: (qmail 16136 invoked by uid 500); 14 May 2014 15:57:02 -0000 Delivered-To: apmail-tez-commits-archive@tez.apache.org Received: (qmail 16091 invoked by uid 500); 14 May 2014 15:57:02 -0000 Mailing-List: contact commits-help@tez.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.incubator.apache.org Delivered-To: mailing list commits@tez.incubator.apache.org Received: (qmail 16084 invoked by uid 99); 14 May 2014 15:57:02 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 15:57:02 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 May 2014 15:57:02 +0000 Received: (qmail 8969 invoked by uid 99); 14 May 2014 15:56:37 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 15:56:37 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B0AE88C47E2; Wed, 14 May 2014 15:56:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sseth@apache.org To: commits@tez.incubator.apache.org Message-Id: <368fb68ffa7f478085373e9a2c4954ee@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: TEZ-1112. MROutput committer should be initialized from initialized OutputFormat. Contributed by Rohini Palaniswamy. Date: Wed, 14 May 2014 15:56:37 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Repository: incubator-tez Updated Branches: refs/heads/master c247a3bfc -> ca7c97dc1 TEZ-1112. MROutput committer should be initialized from initialized OutputFormat. Contributed by Rohini Palaniswamy. Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/ca7c97dc Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/ca7c97dc Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/ca7c97dc Branch: refs/heads/master Commit: ca7c97dc1ee138e2a76f2a5e4bb5adf7306d5756 Parents: c247a3b Author: Siddharth Seth Authored: Wed May 14 08:56:11 2014 -0700 Committer: Siddharth Seth Committed: Wed May 14 08:56:11 2014 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/tez/mapreduce/output/MROutput.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/ca7c97dc/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/output/MROutput.java ---------------------------------------------------------------------- diff --git a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/output/MROutput.java b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/output/MROutput.java index 170f5c8..247fcb9 100644 --- a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/output/MROutput.java +++ b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/output/MROutput.java @@ -186,14 +186,7 @@ public class MROutput extends AbstractLogicalOutput { LOG.debug("using new api for output committer"); } - OutputFormat outputFormat = null; - try { - outputFormat = ReflectionUtils.newInstance( - newApiTaskAttemptContext.getOutputFormatClass(), job); - } catch (ClassNotFoundException cnfe) { - throw new IOException("Unknown OutputFormat", cnfe); - } - this.committer = outputFormat.getOutputCommitter( + this.committer = newOutputFormat.getOutputCommitter( newApiTaskAttemptContext); } else { this.committer = job.getOutputCommitter();