Latest Scoobi Plus Avro not working

36 views
Skip to first unread message

Steve Toth

unread,
Jan 24, 2015, 4:00:19 PM1/24/15
to scoobi...@googlegroups.com
Hi, I'm trying to build a simple app based on the count sample and am having issues with reading my Avro Data.

I'm using avro 1.7.7, scala 2.11.5 and scoobi 0.9.1

All I'm doing is

fromAvroFile[OSMNode](args(0))

and getting back that it can't figure out which implicit to use to generate the reader.

[error] both method AvroFmt in trait LowPriorityWireFormatImplicits of type [T <: org.apache.avro.specific.SpecificRecordBase](implicit evidence$4: Manifest[T], implicit evidence$5: com.nicta.scoobi.io.avro.AvroSchema[T])com.nicta.scoobi.Scoobi.AvroWireFormat[T]
[error] and method GenericAvroFmt in trait LowPriorityWireFormatImplicits of type [T <: org.apache.avro.generic.GenericRecord]=> com.nicta.scoobi.Scoobi.GenericAvroWireFormat[T]
[error] match expected type com.nicta.scoobi.core.WireFormat[com.codekoan.osm.model.avro.OSMNode]
[error] val counts = fromAvroFile[OSMNode](args(0))
[error] ^
[error] one error found

How can I force the implicit used to generate the reader or else pass it in?  I've looked at the sample Avro App on github and I'm doing the same things.

Steve Toth

unread,
Jan 27, 2015, 8:32:37 AM1/27/15
to scoobi...@googlegroups.com
I found my solution is to pass the wireformat and schema explicitly when opening the file.

Also, this still doesn't work with 0.9.1, I had to downgrade to 0.9.0 in order for this to work.  I can repost the exception if anyone is interested.
Reply all
Reply to author
Forward
0 new messages