Support Questions
Find answers, ask questions, and share your expertise

NiFi CLI Tookit : set-param

Explorer

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

2 ACCEPTED SOLUTIONS

Accepted Solutions

Explorer

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

View solution in original post

Expert Contributor

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!

View solution in original post

2 REPLIES 2

Explorer

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

View solution in original post

Expert Contributor

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!

View solution in original post