I am running NiFi in docker with all relevant directories mounted as volumes. I am attempting to modify some settings in my nifi.properties file, specifically to add a custom properties file. However, when I restart NiFi, some of the properties are reverted to their original values.
Here is an example of my current nifi.properties file:
nifi.ui.autorefresh.interval=5 sec
...
nifi.variable.registry.properties=
If I then change the file to the following:
nifi.ui.autorefresh.interval=3 sec
...
nifi.variable.registry.properties=./conf/custom.properties
and then restart NiFi, it prints several lines of replacing target file /opt/nifi/nifi-current/conf/nifi.properties
, and then starts the UI. When I check the nifi.properties file again, it looks like:
nifi.ui.autorefresh.interval=3 sec
...
nifi.variable.registry.properties=
For some reason, the nifi.ui.autorefresh.interval property will update successfully, but the nifi.variable.registry.properties property does not.
Why are some values refusing to take, and how can I get them to survive the startup process?