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!

Setting Nifi Sensitive properties from API

avatar
Frequent Visitor

Good morning.

 

I am attempting to automate a deployment of nifi.  I set all the properties I wished to dynamically configure as Parameters and uploaded the parameters through the API.  This included both normal and sensitive parameters.  This worked great.  Next I attempted to upload a flow into a process group.  All normal parameters worked great.  However all sensitive parameters did not get set.  For example. given a parameter my.password, it was set in the flow property as #{my.password}.  So entering it from the GUI one at a time works great, but Every sensitive property set by the import is incorrect.  Is there a fix for this or another approach to be able to set the sensitive properties through the api.  I would prefer not to call each processor which has sensitive properties individually.

 

Thanks

Rich

2 REPLIES 2

avatar
Master Mentor

@rich197 

Providing the exact steps you perform to reproduce might help here.  I am not clear in this step: "Next I attempted to upload a flow into a process group".   Are you trying to upload a template  or a flow definition?   A flow definition is a Process group containing one or more components.  A template can be just a collection of components (Templates are deprecated and removed as of Apache NiFi 2.x)

Thank you,

Matt

avatar
Frequent Visitor

I attempted to upload a flow definition.  The documentation states that a template will not retain the sensitive properties but a flow definition is supposed to.