Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

NiFi CLI Tookit : set-param

Contributor

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

Contributor

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

Contributor

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

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!

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