Reading avro data using KafkaUtils.createDirectStream

2015-09-24 Thread Daniel Haviv
Hi, I'm trying to use KafkaUtils.createDirectStream to read avro messages from Kafka but something is off with my type arguments: val avroStream = KafkaUtils.createDirectStream[AvroKey[GenericRecord], GenericRecord, NullWritable, AvroInputFormat[GenericRecord]](ssc, kafkaParams, topicSet) I'm

Re: Reading avro data using KafkaUtils.createDirectStream

2015-09-24 Thread Cody Koeninger
Your third and fourth type parameters need to be subclasses of kafka.serializer.Decoder On Thu, Sep 24, 2015 at 10:30 AM, Daniel Haviv < daniel.ha...@veracity-group.com> wrote: > Hi, > I'm trying to use KafkaUtils.createDirectStream to read avro messages from > Kafka but something is off with my