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!

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.

Keep the questions coming