Hi Pradeep, I don't think ConvertJsonToAvro supports choosing fields. I think you would have to prepare the JSON the way you want it before this processor. The easiest way would probably be to use EvaluateJsonPath to extract some fields to attributes, then AttributesToJson to make a new JSON document.
In the next NiFi release there will be a new JoltTransformJson processor that could also be used to manipulate your json. -Bryan On Wed, Jun 22, 2016 at 11:54 AM, pradeepbill <[email protected]> wrote: > I have an incoming JSON, and I have generated the schema for it from > kitesdk > for use by ConvertJSONTOAvro, and if I want to ignore any incoming json, > and > only extract some fields from the json, is there a way ?.Please advice. > > > > -- > View this message in context: > http://apache-nifi-developer-list.39713.n7.nabble.com/ConvertJSONToAvro-Record-schema-question-tp12102.html > Sent from the Apache NiFi Developer List mailing list archive at > Nabble.com. >
