Skip to main content
Jarinek
Gold ⭐️
February 8, 2021
Solved

NiFi CLI Tookit : set-param

Hello,

I have tried to use nifi cli toolkit (nifi 1.11.4) to set parameter like this. However, I can't see any effect.
What have I doing wrong?

 

#> nifi get-param-context -u http://localhost:8080 -pcid 828f0882-0177-1000-aabd-d680a070c5c5

# Name Value Sensitive Description
- ------------- ------------- --------- -----------
1 sample.Passwd ******** true
2 sample.Schema SAMPLE001 false
3 sample.URL jdbc://sample false
4 sample.User dbsample false

 

#> nifi set-param -u http://localhost:8080 -pcid 828f0882-0177-1000-aabd-d680a070c5c5 -pn sample.URL newvalue
Waiting for update request to complete...

 

#> nifi get-param-context -u http://localhost:8080 -pcid 828f0882-0177-1000-aabd-d680a070c5c5

# Name Value Sensitive Description
- ------------- ------------- --------- -----------
1 sample.Passwd ******** true
2 sample.Schema SAMPLE001 false
3 sample.URL jdbc://sample false
4 sample.User dbsample false


Best regards

Jaro
Jaro

Jarinek
JarinekAnswer
Gold ⭐️
February 9, 2021

OK,, I got it. I missed a parameter.  It should be

 

nifi set-param -u http://localhost:8080 -pcid 828f0882-0177-1000-aabd-d680a070c5c5 -pn sample.URL -pv newvalue

2 replies

Jarinek
JarinekAuthorAnswer
Gold ⭐️
February 9, 2021

OK,, I got it. I missed a parameter.  It should be

 

nifi set-param -u http://localhost:8080 -pcid 828f0882-0177-1000-aabd-d680a070c5c5 -pn sample.URL -pv newvalue

Translate
justenji
Gold ⭐️⭐️
February 9, 2021

Hi @Jarinek 

I think you have to set -pv in front of the new value:

nifi set-param -u http://localhost:8088 -pcid 85b8b5bf-0177-1000-3881-8ddd8d31fed8 -pn sample.URL -pv newvalue


This one worked on my local NiFi.

Remark: Haven't seen that you found it yourself. Great!

Translate