Re: avro-console-producer issue for Kafka Stream example PageViewRegionLambdaExample

2016-06-16 Thread Guozhang Wang
Here is my understanding about Avro "union type (or optional field if one of its union value is null)": 1. Even for such fields, you need to specify them as "null" in your data, such as {"region" : "US", "experience" : null}. 2. And if you do have a value for these union fields, you need to speci

Re: avro-console-producer issue for Kafka Stream example PageViewRegionLambdaExample

2016-06-16 Thread Philippe Derome
Sorry, this thread belongs to confluent not Kafka.apache.org as it pertains to Confluent's examples. On Thu, Jun 16, 2016 at 2:33 PM, Philippe Derome wrote: > I am able to produce Avro from producer for pageview.avsc but not for > userprofile.avsc. Here are two samples below, first one leaves ou

avro-console-producer issue for Kafka Stream example PageViewRegionLambdaExample

2016-06-16 Thread Philippe Derome
I am able to produce Avro from producer for pageview.avsc but not for userprofile.avsc. Here are two samples below, first one leaves out Avro optional experience, second one specifies it. Note: I do not register using REST curl calls schemas to schema-registry as I assume that kafka-avro-console-p