<?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: Can NIFI nodes access different records on a Database in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346500#M234896</link>
    <description>&lt;P&gt;Thank you sir.&lt;/P&gt;&lt;P&gt;I thought same way as much. I was just thinking may be there is a better way to go about it.&lt;/P&gt;&lt;P&gt;Please, do you have any other method?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 04:34:35 GMT</pubDate>
    <dc:creator>rafy</dc:creator>
    <dc:date>2022-06-29T04:34:35Z</dc:date>
    <item>
      <title>Can NIFI nodes access different records on a Database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346474#M234882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 3-node Nifi cluster.&lt;/P&gt;&lt;P&gt;Please, i would like to ask if each node of the cluster can output different results (i.e no duplicates) from one another.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCENARIO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let say i have 10 records on a DB.&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;node1&lt;/STRONG&gt; output the first record, i want &lt;STRONG&gt;node2&lt;/STRONG&gt; or &lt;STRONG&gt;node3&lt;/STRONG&gt; not to output first record again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:54:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346474#M234882</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2026-04-21T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can NIFI nodes access different records on a Database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346477#M234885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It all depends how the output is getting generated. you probably need the processor that fetch the DB record to run on primary node first and then do load balancing downstream to process each record on a different node.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 18:49:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346477#M234885</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-28T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can NIFI nodes access different records on a Database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346500#M234896</link>
      <description>&lt;P&gt;Thank you sir.&lt;/P&gt;&lt;P&gt;I thought same way as much. I was just thinking may be there is a better way to go about it.&lt;/P&gt;&lt;P&gt;Please, do you have any other method?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 04:34:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346500#M234896</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-06-29T04:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can NIFI nodes access different records on a Database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346550#M234917</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95347"&gt;@rafy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Each node in a NiFi Cluster has its own copy of the dataflow and executes independently of the other nodes.&amp;nbsp; Some NiFi components are capable of writing cluster state to zookeeper to avoid data duplication across nodes.&amp;nbsp; Those NiFi ingest type components that support this should be configured to execute on primary node only.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In a NiFi cluster, one node will be elected as the primary node (which node is elected can change at any time).&amp;nbsp; So if a primary node change happens, the same component on a different node will now get scheduled and will retrieve cluster state to avoid ingesting same data again.&amp;nbsp; Often in these types of components, the one that records sate does not typically retrieve the content.&amp;nbsp; It simply generates metadata/attributes necessary to later get the content with the expectation that in your flow design you distribute those FlowFiles across all nodes before content retrieval.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;- ListSFTP (primary node execution) --&amp;gt; success connection (with round robin LB configuration) --&amp;gt; FetchSFTP (all node execution)&lt;BR /&gt;&lt;BR /&gt;The ListSFTP creates a 0 byte FlowFIle for each source file that will be fetched.&amp;nbsp; The FetchSFTP processor uses that metadata/attributes to get the actual source content and add it to the FlowFile.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Another example your query might be:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.GenerateTableFetch/index.html" target="_self"&gt;GenerateTableFetch&lt;/A&gt; (primary node execution)&amp;nbsp; --&amp;gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Connecting_Components" target="_self"&gt; LB connection&lt;/A&gt; --&amp;gt; &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.ExecuteSQL/index.html" target="_self"&gt;ExecuteSQL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal with these dataflows is to void having one node ingest all the content (added network and Disk I/O) only to then add more network and disk I/O to spread that content across all nodes.&amp;nbsp; So instead we simply get details about the data to be fetched so that can be distributed across all nodes, so each nodes gets only specific portions of the source data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346550#M234917</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-06-29T18:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can NIFI nodes access different records on a Database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346552#M234919</link>
      <description>&lt;P&gt;Thank you so much Mr &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;for comprehensive explanation on what Mr &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;earlier proposed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really learn alot &amp;amp; appreciate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:28:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NIFI-nodes-access-different-records-on-a-Database/m-p/346552#M234919</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-06-29T18:28:05Z</dc:date>
    </item>
  </channel>
</rss>

