Skip to main content
SandyClouds
Gold ⭐️
May 22, 2023 8:28 AM UTC
Solved

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

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-API/m-p/347697 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.

SandyClouds
Gold ⭐️
May 22, 2023 9:38 AM UTC

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.

2 replies

SandyClouds
SandyCloudsAuthorAnswer
Gold ⭐️
May 22, 2023 9:38 AM UTC

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.

Translate
cjervis
Community Manager
Community Manager
May 22, 2023 1:40 PM UTC

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

Translate
Keep the questions coming