<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi Flow Definition does not keep the same id of processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367316#M239870</link>
    <description>&lt;P&gt;If I may intervene here for a second, I would say that I totally agree with what &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt; said but in the same time, I think that what you,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;, are trying to achieve might be partially possible.You would still need everything what Matt said, but if you just want to double check and confirm your IDs within your definition flow with the ones from your canvas, you might achieve this goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i tested with two versions right now: 1.15.3 and 1.19.1.&lt;BR /&gt;Now, as you can see in the first screenshot, when I downloaded the flow definition for my process group, I have at line 14 the tag "identifier", which has a different ID as the one from the NiFi Canvas. This was done on NiFi 1.15.3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cotopaul_2-1680181188956.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37130i6C28ABFEA45950BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cotopaul_2-1680181188956.png" alt="cotopaul_2-1680181188956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do the same exact thing on NiFi 1.19.1, in the exported definition flow, at line 16 I have a new tag, named &lt;STRONG&gt;instanceIdentifier&lt;/STRONG&gt;, which contains the exact ID of the processor, from your NiFi Canvas.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cotopaul_1-1680181119257.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37129i22C62BE4E34E3515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cotopaul_1-1680181119257.png" alt="cotopaul_1-1680181119257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, if you just want to have your ID compared to the one from your NiFi Canvas, an upgrade to a newer version might be your solution. But, pointing this again, if you want the connection between the environment, you require everything what Matt just told you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 13:04:03 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-03-30T13:04:03Z</dc:date>
    <item>
      <title>Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366309#M239543</link>
      <description>&lt;P&gt;I download Nifi flow definition on a Process Group. Then I search the real id of a &lt;SPAN&gt;processor&amp;nbsp;&lt;/SPAN&gt;and get nothing. Why the definition does not keep everything as same as those in a Nifi flow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compare two Nifi flows in two environment, DEV and UAT. But the definition does not keep all&amp;nbsp;&lt;SPAN&gt;processors'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;identifier. It is so difficult for me to find differences.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 03:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366309#M239543</guid>
      <dc:creator>wffger2</dc:creator>
      <dc:date>2023-03-17T03:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366370#M239565</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 15:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366370#M239565</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-17T15:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366373#M239566</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I just tested on my local machine and if I download the NiFi Flow definition for a Processor Group, I can find each processor ID in that Processor Group. Are you sure you are not looking in a different export from a different environment?&lt;BR /&gt;&lt;BR /&gt;If the same exact flow is imported on a different environment (meaning other servers) and you download the Flow definition, you will not have the same IDs.&lt;BR /&gt;&lt;BR /&gt;For example, in your Process Group on Dev you have an Processor PutFile which has the id 1d29eb87-d66f-31ba-d653-93b704036191. If you exported everything on the UAT Environment that Processor Group and the Processor will not have the same exact IDs as on DEV because NiFi generates new UUIDs for those elements --&amp;gt; maybe the ID 1d29eb87-d66f-31ba-d653-93b704036191 is already in use on the UAT environment by another processor.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I might be wrong in my post and you could wait for another answer, as somebody might know otherwise.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:01:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366373#M239566</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-17T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366378#M239567</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;A flow definition is a snippet of the components contained with in the Process Group (PG) on which the flow definition was exported.&lt;BR /&gt;&lt;BR /&gt;The import of a flow definition is handled differently since a flow definition can be imported over and over to the same NiFi or different NiFis.&amp;nbsp; On import the components will be assigned unique new component UUIDs. So when you create/downloaded your flow definition from DEV and then imported to UAT, the UAT components will have different UUIDs.&lt;BR /&gt;&lt;BR /&gt;What you should be doing is install a NiFi-Registry [1] that both your DEV and UAT environments can connect to.&amp;nbsp; This allows you to version control a Process Group (PG) on the your DEV environment and then load that version controlled PG to your UAT environment.&amp;nbsp; While the component UUIDs in UAT will still be different from DEV, both PGs will track back to same version controlled flow stored in the NiFi-Registry.&amp;nbsp; as you make changes in DEV to components in the Version controlled PG, the DEV PG will report that local changes exist.&amp;nbsp; You can commit those local changes as a new version of the PG.&amp;nbsp; At which time the same PG on your UAT env will report a newer version being available which you can change to. You will also have ability to see differences/changes between what is most recent version in NiFi-Registry and what is local to each NiFi from NiFi.&lt;BR /&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="https://nifi.apache.org/registry.html" target="_blank"&gt;https://nifi.apache.org/registry.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 19:59:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/366378#M239567</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-17T19:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367255#M239837</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wffger2_0-1680157624869.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37121i47533821ECC1A4FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wffger2_0-1680157624869.png" alt="wffger2_0-1680157624869.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wffger2_1-1680157654107.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37122iD296465F94431565/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wffger2_1-1680157654107.png" alt="wffger2_1-1680157654107.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wffger2_2-1680157843370.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37123i31D630B20F65B037/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wffger2_2-1680157843370.png" alt="wffger2_2-1680157843370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 06:31:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367255#M239837</guid>
      <dc:creator>wffger2</dc:creator>
      <dc:date>2023-03-30T06:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367311#M239868</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi Flow Definitions are meant to be reusable snippets of flow.&amp;nbsp; Meaning it can be imported to the canvas of the same NiFi Cluster or to the canvas of another NiFi cluster.&amp;nbsp; Since you can not have multiple components on the canvas using the same component UUID, you will not be able to compare Flow Definitions between two different environments without seeing differences in those UUIDs.&lt;BR /&gt;&lt;BR /&gt;If you want to track differences in dataflows between your UAT and DEV environments, NiFi-Registry is the method you want to use.&amp;nbsp; You can install a single NiFi-Registry and configure both your NiFi's to point at that same instance of NiFi-Registry.&amp;nbsp; Then on your DEV environment you start version control on a process group (testNiFiDefinition).&amp;nbsp; Then on your UAT environment you import that same version flow from the NiFi-registry.&amp;nbsp; Now you have both your NiFi environments tracking against the same version flow stored in that NiFi-registry.&amp;nbsp; While the component UUID will still be different, they both track to same versioned flow.&amp;nbsp; If you then make changes in DEV and commit those to NiFi-Registry as a new version of the already version controlled flow, you UAT environment will report a newer version as being available.&amp;nbsp; You can see the differences directly from the NiFi UI and easily upgrade your dataflow on the UAT environment to the newer version available if you choose.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 12:49:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367311#M239868</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-30T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367316#M239870</link>
      <description>&lt;P&gt;If I may intervene here for a second, I would say that I totally agree with what &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt; said but in the same time, I think that what you,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;, are trying to achieve might be partially possible.You would still need everything what Matt said, but if you just want to double check and confirm your IDs within your definition flow with the ones from your canvas, you might achieve this goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i tested with two versions right now: 1.15.3 and 1.19.1.&lt;BR /&gt;Now, as you can see in the first screenshot, when I downloaded the flow definition for my process group, I have at line 14 the tag "identifier", which has a different ID as the one from the NiFi Canvas. This was done on NiFi 1.15.3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cotopaul_2-1680181188956.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37130i6C28ABFEA45950BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cotopaul_2-1680181188956.png" alt="cotopaul_2-1680181188956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do the same exact thing on NiFi 1.19.1, in the exported definition flow, at line 16 I have a new tag, named &lt;STRONG&gt;instanceIdentifier&lt;/STRONG&gt;, which contains the exact ID of the processor, from your NiFi Canvas.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cotopaul_1-1680181119257.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37129i22C62BE4E34E3515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cotopaul_1-1680181119257.png" alt="cotopaul_1-1680181119257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, if you just want to have your ID compared to the one from your NiFi Canvas, an upgrade to a newer version might be your solution. But, pointing this again, if you want the connection between the environment, you require everything what Matt just told you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:04:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367316#M239870</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-30T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Flow Definition does not keep the same id of processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367386#M239885</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104067"&gt;@wffger2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The InstanceIdentifier was introduced when NiFi switched from using the flow.xml.gz to the flow.josn.gz for flow persistence.&amp;nbsp; It is also currently being written to the flows stored in the NiFi-Registry.&amp;nbsp; I say "currently" because this jira exist and is still open:&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11321" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-11321&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So as&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;points out, the "instanceIdentifier" will be unique for each instantiation of the flow definition, but the "identifier" will be the same.&amp;nbsp; Downside here is every time you want to do a comparison, you'll need to download latest flow definition from DEV and UAT environments and compare for difference based on the Identifiers.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 21:44:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Flow-Definition-does-not-keep-the-same-id-of-processor/m-p/367386#M239885</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-30T21:44:31Z</dc:date>
    </item>
  </channel>
</rss>

