Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi : Adding variables to processor group not detected as change

Highlighted

Nifi : Adding variables to processor group not detected as change

New Contributor

Hi,

Adding variables to processor group not detected as change. The following are the steps to reproduce the issue

  1. create bucket in nifi registry
  2. create process group in nifi
  3. associate process groupto bucket
  4. add variables to process group in nifi

The process group does not show there was local change. we are doing workaround of changing position of any processors inside processor group. is this defect or expected?

NiFi Version : 1.7.1

Tag : nifi-1.7.1-RC1

Thanks
Subbu
3 REPLIES 3

Re: Nifi : Adding variables to processor group not detected as change

Guru

Yes, this is expected behavior. As documented in the NiFi User Guide (https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#managing_local_changes) modifying variables is not considered a local change. When a flow is imported to an environment, it is assumed there is a one-time operation required to set those variables specific for the given environment. For more information and how this relates to variables not supporting sensitive values, please see this NiFi Users mailing list thread:

https://lists.apache.org/thread.html/63a533a65fe46dff11867fab9976d2b4738fb94c75ffdfc4047f0e64@%3Cdev...

Re: Nifi : Adding variables to processor group not detected as change

New Contributor

Thanks for quick reply. I agree with variable values needs to set one time on the target environment. The problem which i am facing is adding new variable(not value) to process group is not detected as change.

Regards

Subbu

Re: Nifi : Adding variables to processor group not detected as change

Guru

Hi @subramanian palaniyappan

Sorry that I didn't answer your question directly. I see what you are saying now.

Creating a variable doesn’t trigger a local change because just creating a variable on its own has not changed anything about what the flow processes. A component will have to be created/modified that uses the new variable, which will trigger a local change.

Having said that, the documentation could be improved and I have filed https://issues.apache.org/jira/browse/NIFI-5677 to do so.