Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issue in Creating a Nested Schema in AVRO

Issue in Creating a Nested Schema in AVRO

New Contributor

I need a help in resolving the issue in creating a Avro Schema for Nested JSON :

My Example JSON in GenerateFlowFile :

{ "ser" :

{ "measureSeries" :

{ "teNo" : "TE",

"testStart" : "EE",

"testEnd" : "EE" }

}

}

My Avro Nested Schema Validated in : https://json-schema-validator.herokuapp.com/avro.jsp

{ "name":"devices", "type":"record", "fields":

[ { "name": "ser", "type":

{"type":"array","items":{ "name":"meSer","type":"record","fields":

[ {"name":"teNo","type":["string","null"]},

{"name":"testStart","type":["string","null"]},

{"name":"testEnd","type":["string","null" ]} ]

} }

} ]

}

I am using CovertRecord Processor :

Record Reader : JsonTreeReader

Record Writter : XMLRecordSetWriter.

It is throwing an error "could not parse incoming data". Any Input on soving nested schema will help me..