Created 07-21-2019 04:57 PM
Hi all,
I am using Apache NIFI, how I can change/modify/replace value of global/environment variables?
Created 07-22-2019 12:18 AM
Hi @Thuy Le
Sorry if I am misunderstanding your question, but have you used the Variables Window to manage your variables?
https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Variables_Window
Created on 07-22-2019 12:25 PM - edited 08-17-2019 04:42 PM
yes, I created variable
after now I want to update it with new value, how I can do it?,
Created on 07-23-2019 02:22 PM - edited 08-17-2019 04:42 PM
Created 07-23-2019 05:14 PM
In this case, you are changing variable manually, my expectation is changing it through any processors (as UpdateAttribute, ExcecuteScript, ... )
Created 10-02-2019 05:08 AM
How did you resolved this?
Created 10-03-2019 08:02 AM
You can change the variables with REST API, but I wouldn't suggest this.
1. In this case within NIFI Cluster version numbers could be different between Nodes
2. After variable update a restart is required for controller and processor too (it doesn't matter if you changing it with REST API, or with other methods), you can check the process, when you manually changing it.
It's better to create a flowfile with attributes, or write-back data to sources (if it's a database), and compare it from there if possible.
If you have an another solution, please share it :).