Support Questions

Find answers, ask questions, and share your expertise

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

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

Explorer

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. 

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.