Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 107DE178AD for ; Fri, 6 Feb 2015 20:46:36 +0000 (UTC) Received: (qmail 32779 invoked by uid 500); 6 Feb 2015 20:46:35 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 32750 invoked by uid 500); 6 Feb 2015 20:46:35 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 32712 invoked by uid 500); 6 Feb 2015 20:46:35 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 32692 invoked by uid 99); 6 Feb 2015 20:46:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 20:46:35 +0000 Date: Fri, 6 Feb 2015 20:46:35 +0000 (UTC) From: "Ryan Brush (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-481) Support independent output committers for multiple outputs 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/CRUNCH-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309880#comment-14309880 ] Ryan Brush commented on CRUNCH-481: ----------------------------------- Hey Tom, You're right that the output committer is constructed with a task context using a different Job instance. I handled this in the patch by "decorating" the job instance passed to the task context as well. (And it did indeed fail before I handled that additional Job instance, as one would expect with your comment.) So I think the logic here is okay. In any case, the tests for Kite, Crunch, and our local usage all pass. I can't say this is the most elegant code I've ever written, but these hoops seem to be necessary to simulate multiple output formats in a job. Thanks for the clarification on the committer logic in Hadoop 1. That explains what I saw. > Support independent output committers for multiple outputs > ---------------------------------------------------------- > > Key: CRUNCH-481 > URL: https://issues.apache.org/jira/browse/CRUNCH-481 > Project: Crunch > Issue Type: Bug > Components: Core > Reporter: Aniket Kulkarni > Assignee: Josh Wills > Priority: Minor > Fix For: 0.12.0 > > Attachments: CRUNCH-481-hadoop-2-compat.patch, CRUNCH-481.patch, CRUNCH-481.patch, CRUNCH-481.patch, CRUNCH-481c.patch > > > I faced this issue while trying to write to Kite and HDFS in the same pipeline. A similar issue was logged for Kite[1][2]. > I was attempting to write a PCollection to Kite and a different PTable to HDFS as a text file. The write to Kite succeeded, however the write to HDFS only produced a _SUCCESS file with no text file. > Commenting out the write to Kite seems to solve the issue and I can see the text file being written. > [1] - https://issues.cloudera.org/browse/CDK-756 > [2] - http://mail-archives.apache.org/mod_mbox/crunch-dev/201401.mbox/%3CCAF-WD4QCUe0Toh3qewpDNnom3u786PVJLgH7T6Go_AbcTpLTaw@mail.gmail.com%3E -- This message was sent by Atlassian JIRA (v6.3.4#6332)