You would need to create a new Maven project that has a root POM and two
modules (one for the JAR and one for the NAR). You can find examples of
that project structure in our repository or in a lot of community repos on
GitHub.

>From there, you'd implement (going on memory here without the JavaDocs) a
RecordReader and a RecordReaderFactory. For the Record objects themselves,
the basic implementation you can use for that is a MapRecord which is just
a wrapper around a Java Map with a Schema object associated with it.

On Thu, May 11, 2023 at 10:29 AM Abhik Lodh <[email protected]>
wrote:

> Hi,
> I am writing this mail because I wanted to create a custom Record Reader
> in NiFi that parses ASCII files (or any other currently unsupported file
> format) but I’m having a very hard time creating a custom controller
> service that does this while integrating with ConvertRecord, UpdateRecord
> and ValidateRecord just like other RecordReaders.
>
> Could anyone help me out with this?
>
> Thanks and regards,
> Abhik Lodh
>

Reply via email to