Member since
12-01-2025
4
Posts
4
Kudos Received
0
Solutions
04-17-2026
03:20 AM
1 Kudo
Thank you André, This led to the right direction. Since the configuration file is required by a third party JAR that I don't build, the way to solve it was to add a src/main/resources path to the myProcessor-nar directory instead of the myProcessor-processor directory. The nar directory doesn't include a src/main/java but you can nevertheless add a src/main/resources path and add subfolders/files to it, e.g. NAR-INF/data/config.ini. Maven will copy automatically everything under src/main/resources to the target, hence it's not necessary to add the resources snippet to the pom.xml. So, now NiFi's work/nar/extensions/myProcessor-nar-1.0.nar-unpacked/NAR-INF folder contains my subfolder/file data/config.ini every time NiFi unpacks the NAR. I found this article helpful that explains the parts of a NAR and the three pom.xml files: https://www.javahotchocolate.com/notes/nifi-project.html Thanks @vafs!
... View more
04-15-2026
12:44 AM
1 Kudo
HI, I have built a custom processor that uses another java library. This 3rd party JAR requires one sub directory ./data containing a file named config.ini. I put the NAR into the ./extensions subfolder of NiFi. When NiFi starts up, it unpacks the NAR into the folder nifi/work/nar/extensions/my-processor-nar-1.0.nar-unpacked/ This folder contains a subfolder NAR-INF. And this NAR-INF is the location where my subfolder "data" needs to be copied. When I manually copy the folder with the containing config file into NAR-INF, the processor works fine. But after the next restart of NiFi the subfolder is missing again. I need the structure of the unpacked NAR to include this: nifi/work/nar/extensions/my-processor-nar-1.0.nar-unpacked/data/config.ini Does anyone have an example how I can build the NAR so that this subfolder and file are included? Like an example pom.xml snippet? Cheers, Karsten
... View more
Labels:
- Labels:
-
Apache NiFi
12-03-2025
04:28 AM
2 Kudos
Thank you @vafs ! Yes, that made the trick. Thanks; -karsten
... View more
12-01-2025
06:31 AM
Hi, We have deployed Cloudera Flow Management through the Kubernetes Operator on a k8s cluster. What's the best practice how to add custom processor NARs in this environment? On a plain (not containerized) NiFi deployment I would put the NAR into the extensions sub folder of the NiFi deployment and it gets unpacked during startup of NiFi. How does it work with the Cloudera Kubernetes Operator version of NiFi? We have a NFS share available that could be mapped to a container's sub folder. Has anyone done this successfully? Thanks, -karsten
... View more
Labels:
- Labels:
-
Cloudera Data Flow