Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

What is best practice for auto deploying Apache Nifi custom .nar Files

avatar
New Contributor

We have the need to create a custom nifi processor. The processor is working when deployed manually on a single node nifi server.

What is best practice to autodeploy the .nar file to all Nifi-Servers on a cluster and restart them?

Or can we place the nifi file somewhere central (e.g. HDFS) and configure Nifi to load the .nar file from there on startup? This would be HBase Coprocessor style like.. Is there possibly a way to do this via Ambari?

1 ACCEPTED SOLUTION

avatar
Super Guru

Currently you just copy the NAR to the lib directory of every server and restart NiFi, you could script this process.

The NiFi community has talked about a future enhancement to have an extension registry where custom NARs could be uploaded, and then a given NiFi instance/cluster could load NARs from the registry. There is still a lot of design to be done, but this could potentially help with this scenario.

View solution in original post

3 REPLIES 3

avatar
Super Guru

Currently you just copy the NAR to the lib directory of every server and restart NiFi, you could script this process.

The NiFi community has talked about a future enhancement to have an extension registry where custom NARs could be uploaded, and then a given NiFi instance/cluster could load NARs from the registry. There is still a lot of design to be done, but this could potentially help with this scenario.

avatar
Contributor

After that any implementation for auto deploying Apache nifi .nar files?

avatar
Cloudera Employee

@shreyanshu_pare  You can now autoload nars by placing them in the ./extensions dir in the NiFi home.

 

https://www.nifi.rocks/auto-loading-extensions/

 

 

Alasdair Brown | Senior Developer Advocate
Cloudera Innovation Accelerator