incubator-crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Beech (JIRA)" <>
Subject [jira] [Commented] (CRUNCH-147) Pipeline.writeTextFile should work with Avro data
Date Wed, 23 Jan 2013 14:42:15 GMT


Dave Beech commented on CRUNCH-147:

Works for me. Thanks for looking at this, Josh
> Pipeline.writeTextFile should work with Avro data
> -------------------------------------------------
>                 Key: CRUNCH-147
>                 URL:
>             Project: Crunch
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.4.0
>            Reporter: Dave Beech
>            Assignee: Josh Wills
>            Priority: Minor
>         Attachments: CRUNCH-147b.patch, CRUNCH-147.patch
> I'd find it useful to be able to dump Avro collections to a text file (as json) during
development to have a quick look inside without having to mess around with avro-tools. The
current Pipeline.writeTextFile method expects Writables and gives the following error when
you attempt to pass Avro to it:
> Exception in thread "main" java.lang.ClassCastException: class my.avro.Record
> 	at java.lang.Class.asSubclass(
> 	at org.apache.crunch.types.writable.Writables.records(
> 	at org.apache.crunch.types.writable.WritableTypeFamily.records(
> 	at org.apache.crunch.types.PTypeUtils.convert(
> 	at

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:

View raw message