Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

NiFi CLI Tookit : set-param

avatar
Rising Star

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

avatar
Rising Star

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

avatar
Master Collaborator

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

avatar
Rising Star

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

avatar
Master Collaborator

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!