Avro schema doesn't honor backward compatibilty

2016-02-01 Thread Raghvendra Singh
down votefavorite I have this avro schema { "namespace": "xx..x.x", "type": "record", "name": "MyPayLoad", "fields": [ {"name": "filed1", "type": "string"}, {"name": "filed2",

Re: Avro schema doesn't honor backward compatibilty

2016-02-01 Thread Raghvendra Singh
Thanks Prajwal I tried what you suggested but i still get the same error. On Mon, Feb 1, 2016 at 2:05 PM, Prajwal Tuladhar wrote: > Hi, > > I think your usage of default for field "agentType" is invalid here. > > When generating code from invalid schema, it tends to fail:

Re: Avro schema doesn't honor backward compatibilty

2016-02-01 Thread Prajwal Tuladhar
Hi, I think your usage of default for field "agentType" is invalid here. When generating code from invalid schema, it tends to fail: [INFO] > [INFO] --- avro-maven-plugin:1.7.6-cdh5.4.4:schema (default) @ test-app --- > [WARNING] Avro: Invalid default for field agentType: "APP_AGENT" not a >

Re: Autogenerating Java classes from IDL

2016-02-01 Thread tl
> On 31.01.2016, at 01:13, Evan McClain wrote: > > I have used IDLs with the avro-maven-plugin and that worked for me. > Evan Maven is black art for me but your answer encouraged me to stare at the command line output of avro-tools again (since I considered it improbable