Dear my//�{�瞟滓� → you←,
In case you'd like to create a custom Apache NiFi component you have to
implement it as a nar and add it to NiFi's lib directory. I recommend starting
off from an existing component or following any of the online tutorials on
creating custom components.
Here's a short summary of a structured nar of a processor component:
nifi-{myBundle}-bundle
├── nifi-{myBundle}-processors
└── nifi-{myBundle}-processors-nar
nifi-{myBundle}-processors
This module contains the implementation of the Processor with all the necessary
internal structures. This might include internal data representations, custom
validators, etc.
The following requirements are set for the processor bundle:
* It must contain the Processor implementations with all necessary helper
classes.
* Within the folder resources/META-INF/services it must contain the file
named org.apache.nifi.processor.Processor, with the list of all the Processors
published.
* It should use jar packaging.
* The nifi-api dependency must be provided. (As Processor implementations
needs to be inherited from pre-defined interface or abstract class)
* It must depend on Service API and not the service implementation. The
dependency should be provided. It will be contained by the relevant NAR.
nifi-{myBundle}-processors-nar
The module is responsible for creating the NAR packaging of the Processor JAR.
Should not contain anything else then the POM descriptor! The following
requirements are apply:
* The packaging must be nar.
* It must depend on the Processor module. (Not provided!)
A detailed example of a custom processor and controller service:
https://medium.com/hashmapinc/creating-custom-processors-and-controllers-in-apache-nifi-e14148740ea
Best Regards,
Lehel B
________________________________
From: my//�{�瞟滓� → you← <[email protected]>
Sent: Thursday, April 13, 2023 9:58
To: dev <[email protected]>
Subject: Questions as a developer
Dear friends: I am a java development engineer. Recently, my company needs
Apache NIFI to help me with my work, but I can't find what I need to learn on
the Internet. I think the official documents are very obscure. Let me
illustrate my question with examples: I have a Demo.jar project, and the
company needs to inherit Demo.jar into Apache NIFI and use it as a component.
In other words, secondary development is carried out on the original use. Now
that the source code and dependencies have been downloaded, how can we inherit
jar into nar and use it as a component? Please let me know if there is a better
url link. thank
my//�{�瞟滓� → you←
[email protected]