Cascalog Avro

241 views
Skip to first unread message

Gerrard McNulty

unread,
Sep 16, 2011, 11:49:36 AM9/16/11
to cascalog-user
Hi,

Has anybody used cascalog with avro? What are your thoughts/
experiences?

nathanmarz

unread,
Sep 16, 2011, 3:32:13 PM9/16/11
to cascalog-user
I haven't, but you may want to check out this project that integrates
Cascading with Avro:

https://github.com/bixolabs/cascading.avro

It's fully compatible with Cascalog since Cascading taps are first-
class.

-Nathan

Andrew Xue

unread,
Sep 19, 2011, 6:15:40 PM9/19/11
to cascalog-user
I just started messing with avro and cascalog. Was able to create the
a tap with AvroScheme no problem, but encountered
cascading.flow.FlowException: unhandled exception (NO_SOURCE_FILE:0)
when actually trying to query data.

seems like it could be really sweet if i got it working. one thing
though: one of the features of avro is that the schema is specified in
the data itself. but with cascading.avro theres no way to recover it,
so you have to specify it yourself somewhere.


On Sep 16, 11:49 am, Gerrard McNulty <gerrard.mcnu...@gmail.com>
wrote:

nathanmarz

unread,
Sep 23, 2011, 7:00:05 PM9/23/11
to cascalog-user
Hey Andrew,

Whenever you get a FlowException like that, you should be able to find
the actual cause of the error in the task logs. That will help with
diagnosing why it's not working.

-Nathan

Andrew Xue

unread,
Sep 28, 2011, 3:16:36 PM9/28/11
to cascalog-user
Hi Gerrard,

Any luck with this? I got through some of initial issues but now stuck
on the fact that cascalog vars/fields have a prefix that avro doesn't
seem to like

Caused by: org.apache.avro.SchemaParseException: Illegal initial
character: !id
at org.apache.avro.Schema.validateName(Schema.java:1042)
at org.apache.avro.Schema.access$200(Schema.java:77)
at org.apache.avro.Schema$Field.<init>(Schema.java:383)
at org.apache.avro.Schema$Field.<init>(Schema.java:379)

same for ? as well



On Sep 16, 11:49 am, Gerrard McNulty <gerrard.mcnu...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages