Support Questions

Find answers, ask questions, and share your expertise

How to update or add items to existing parameter context using CLI or toolkit ?

avatar
Expert Contributor

I am using Nifi parameter context to avoid hardcoding multiple variables.

I used toolkit to create parameter context and used params inside my flow.

Now I want to update some values of this existing parameter context.. 1. to update some values or 2. to add new parameters.

I could not find a way using toolkit in the documentation. 

I see an answer here https://community.cloudera.com/t5/Support-Questions/Update-parameter-contexts-dynamically-using-REST... But i am looking for any solution based on toolkit or other easier approach, so that it can be easily handled while deployments to next environments or while updating it in production environments. 

Please help me with your approach or suggestions.

1 ACCEPTED SOLUTION

avatar
Expert Contributor

a bit research helped to find out the way from Nifi toolkit documentations

$ nifi set-param -pcid abc -pn <name> -pv <value> -ps <true/false for senstivity>

 

and it automatically refreshed/bought-in the updated values in UI.

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

a bit research helped to find out the way from Nifi toolkit documentations

$ nifi set-param -pcid abc -pn <name> -pv <value> -ps <true/false for senstivity>

 

and it automatically refreshed/bought-in the updated values in UI.

avatar
Community Manager

Congratulations on solving your issue @SandyClouds and thank you for posting the solution in case it can assist others.


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.