Created 02-08-2021 12:27 PM
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
Created 02-08-2021 11:44 PM
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
Created on 02-08-2021 11:53 PM - edited 02-08-2021 11:54 PM
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!
Created 02-08-2021 11:44 PM
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
Created on 02-08-2021 11:53 PM - edited 02-08-2021 11:54 PM
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!