Support Questions

Find answers, ask questions, and share your expertise

Running NiFi 2.8 in stateless mode

avatar
Frequent Visitor

Previously we used NiFi 1.24, running it in OpenShift containers via the entrypoint "./bin/nifi.sh stateless...". Now I'm trying to migrate the dataflow to version 2.8.0 and am encountering an error - the "stateless" parameter for nifi.sh is now missing. I read all the documentation in the NIFI release notes and did not find information about this anywhere. Git still says that you can run it this way (nifi-stateless-assembly readme).
Tell me, is there any possibility to run the NiFi 2.8.0 distribution via the console in stateless mode? How to use a separate nifi-stateless distribution?

3 REPLIES 3

avatar
Master Collaborator

Hello @Dagonvlg

As far as I know, NiFi 2 does not have a stateless mode to the entire service. 
That was removed. 

But what it offers is an stateless engine. You can configure it at Processor Group level: 
https://nifi.apache.org/nifi-docs/user-guide.html#stateless-execution-engine 


Regards,
Andrés Fallas
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.

avatar
Frequent Visitor

Hello @vafs
How to use nifi-stateless-2.8.0-bin.zip in this case? As I understand it, it contains everything that was removed from the main distribution nifi-2.8.0-bin.zip (i.e. stateless.properties)
Readme has not been updated for three years (https://github.com/apache/nifi/blob/rel/nifi-2.9.0/nifi-stateless/nifi-stateless-assembly/README.md#...), it still says that you can run it as a entire service


avatar
Master Collaborator

Hello @Dagonvlg

The best option should be on NiFi UI, in that way you can execute it as stateless: 

vafs_0-1778101602076.png

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-stateless-processor-nar/1.28.... 


Regards,
Andrés Fallas
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.