You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2013/06/29 17:37:20 UTC

[jira] [Resolved] (CRUNCH-229) Better error handling for incompatible PTypes and Targets

     [ https://issues.apache.org/jira/browse/CRUNCH-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Wills resolved CRUNCH-229.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7.0

Committed.
                
> 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
>             Fix For: 0.7.0
>
>         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