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 F3C3010711 for ; Sat, 29 Jun 2013 00:03:21 +0000 (UTC) Received: (qmail 25855 invoked by uid 500); 29 Jun 2013 00:03:21 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 25821 invoked by uid 500); 29 Jun 2013 00:03:21 -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 25766 invoked by uid 500); 29 Jun 2013 00:03:21 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 25755 invoked by uid 99); 29 Jun 2013 00:03:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jun 2013 00:03:21 +0000 Date: Sat, 29 Jun 2013 00:03:21 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CRUNCH-229) Better error handling for incompatible PTypes and Targets 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-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Wills updated CRUNCH-229: ------------------------------ Attachment: CRUNCH-229.patch Attaching this patch to the right issue this time. :) > Better error handling for incompatible PTypes and Targets > --------------------------------------------------------- > > Key: CRUNCH-229 > URL: https://issues.apache.org/jira/browse/CRUNCH-229 > Project: Crunch > Issue Type: Bug > Components: Core > Affects Versions: 0.3.0, 0.4.0, 0.5.0, 0.6.0 > Reporter: Josh Wills > Assignee: Josh Wills > Attachments: CRUNCH-229.patch > > > Right now, this simple bit of Crunch code: > pipeline.read(From.textFile(...)).write(To.avroFile("output")); > ...fails because the Writable type that is returned by From.textFile cannot be converted to an Avro type for the output file. The current error message when this happens ("no OutputFormat configured") is cryptic relative to the actual source of the problem. This patch moves the error reporting higher in the stack to the source of the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira