- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
InferAvroSchema - JSON flowfile going straight to failure queue
- Labels:
-
Apache NiFi
Created on ‎10-18-2017 10:58 PM - edited ‎08-17-2019 05:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
I am trying to automatically infer an arvo schema from a JSON object. Unfortunately I think I'm missing something and I'm not sure what. I am trying to infer the schema automatically as the data feed is still under dev, and there will be changes. I have already setup anther flow using the Evaluate JSON path and replace text processor and don't want to constantly update it.
Have set the "Schema Output Destination" to "flowfile-attribute" and the "Input Content Type" to JSON. In the ConvertJSONToArvo processor I have set the record schema to "${inferred.avro.schema}"
Thanks for your time
James
Created ‎10-18-2017 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figured it out, the config above works. Sorry there was an illegal character in my JSON. I wrongly assumed that the JSON object was fine since it worked with the EvaluateJsonPath and not InferArvoSchema
Created ‎10-18-2017 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figured it out, the config above works. Sorry there was an illegal character in my JSON. I wrongly assumed that the JSON object was fine since it worked with the EvaluateJsonPath and not InferArvoSchema
