Support Questions

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

Apache Nifi: changing the value of a variable from command line

avatar
New Contributor

hi guys,

Is there any ways to changing the value of a variable from command line in Apache Nifi:

Many thanks

1 REPLY 1

avatar
Contributor

Hi @Luti 

yes sure you can use NiFi toolkit for this.

nifi pg-set-var -pgid b1f05b41-017f-1000-0000-00005ac6776e --varValue "Test2" --varName "MyVar1"

 If the variable does not exist, it will create. If the variable exists, you will update the value. 

janisax_0-1648210960200.png

I hope this will help you.