Support Questions

Find answers, ask questions, and share your expertise

how change NIFI property in runtime

avatar

Dears,

How can we change a property in nifi.properties file to be updated by nifi in runtime?

Example:

Modify the following property in nifi.properties file : " nifi.variable.registry.properties " and nifi get this modification in runtime (without restarting nifi).

Thanks.

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Bilel Boubakri

NiFi only reads the nifi.properties file on startup. so currently edits to this file cannot be done during runtime. A restart is going to be required. The only configuration file that is regularly read by NiFi during runtime is the logback.xml file.

Thanks,

Matt

View solution in original post

2 REPLIES 2

avatar
Master Mentor
@Bilel Boubakri

NiFi only reads the nifi.properties file on startup. so currently edits to this file cannot be done during runtime. A restart is going to be required. The only configuration file that is regularly read by NiFi during runtime is the logback.xml file.

Thanks,

Matt

avatar
Contributor

you can try to include updateAttribute and modify particular variable in runtime. If that needs to be permanent for all flowfiles, update in nifi.properties--> nifi.variable.registry.properties (example: create custom.properties and add custom variables) and restart as suggested by @Mattclarke