[
https://issues.apache.org/jira/browse/NIFI-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15084555#comment-15084555
]
Joseph Witt commented on NIFI-1356:
-----------------------------------
Hello [~jeremy.dyer] Could we simply have an 'InferAvroSchema' processor and
then using properties indicate whether we're looking at CSV, JSON or better yet
have it also support 'use.mimetype' or 'use.media-type' by default?
> Create Avro Schema by inferring CSV and JSON data
> -------------------------------------------------
>
> Key: NIFI-1356
> URL: https://issues.apache.org/jira/browse/NIFI-1356
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Affects Versions: 0.4.1
> Reporter: Jeremy Dyer
> Labels: features
> Fix For: 0.5.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> There are several situations where the ability to dynamically create an Avro
> schema is desired. Kite provides the ability to dynamically infer an Avro
> schema from both CSV and JSON data. Since NiFi already contains a kite bundle
> for converting csv and json to Avro this feature should be an easy add.
> I propose 2 new processors "InferAvroSchemaFromCSV" and
> "InferAvroSchemaFromJSON". These processors will reside inside of the
> existing "nifi-kite-bundle" and extend upon the already present third party
> libraries. Each processor will accept either CSV or JSON and produce as
> output the Avro Schema JSON and the original data that was presented to them.
> The processors will rely on kite to perform the actually inferring of the
> schema.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)