<?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: Files Duplicating using QueryDatabaseTable and PutFile in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159021#M57136</link>
    <description>&lt;P&gt;Please verify what have you configured for "Maximum-Value Column" in the QueryDatabaseTable processor. Plus how is your table structured. Nifi needs an increment key to determine the maximum id previously fetched.&lt;/P&gt;&lt;P&gt;Following article will help"&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html" target="_blank"&gt;https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 22:55:28 GMT</pubDate>
    <dc:creator>umair_khan</dc:creator>
    <dc:date>2017-03-15T22:55:28Z</dc:date>
    <item>
      <title>Files Duplicating using QueryDatabaseTable and PutFile</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159020#M57135</link>
      <description>&lt;P&gt;I have a very basic flow that I have put together to test a concept for a presentation.  (Btw, relatively new to NiFi).  The flow is setup like this:  QueryDatabaseTable-&amp;gt;SplitAvro-&amp;gt;ConvertAvroToJSON-&amp;gt;Putfile-&amp;gt;LogAttributes&lt;/P&gt;&lt;P&gt;The query is very simple for the Query processor: "select * from test2"  which has 8 rows of data.  When I fire off the flow, basically it keeps generating files over and over containing the same 8 rows of data in each file. &lt;/P&gt;&lt;P&gt;I know this is probably something very simple to fix, but I just can't seem to find the setting where it will just run once...&lt;/P&gt;&lt;P&gt;I looked around on the boards but did not find anything similar (or entirely possible I maybe missed it).  &lt;/P&gt;&lt;P&gt;Does anyone have a suggestion?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;♣km&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:15:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159020#M57135</guid>
      <dc:creator>Kelvin_Mitchell</dc:creator>
      <dc:date>2022-09-16T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Files Duplicating using QueryDatabaseTable and PutFile</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159021#M57136</link>
      <description>&lt;P&gt;Please verify what have you configured for "Maximum-Value Column" in the QueryDatabaseTable processor. Plus how is your table structured. Nifi needs an increment key to determine the maximum id previously fetched.&lt;/P&gt;&lt;P&gt;Following article will help"&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html" target="_blank"&gt;https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 22:55:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159021#M57136</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2017-03-15T22:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Files Duplicating using QueryDatabaseTable and PutFile</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159022#M57137</link>
      <description>&lt;P&gt;Thank you!  That was it.  I had no values in my Maximum-Value Column.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:34:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159022#M57137</guid>
      <dc:creator>Kelvin_Mitchell</dc:creator>
      <dc:date>2017-03-15T23:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Files Duplicating using QueryDatabaseTable and PutFile</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159023#M57138</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/16654/kelvinmitchell.html"&gt;Kelvin Mitchell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your QueryTable processor queries continuously your table and generates a FlowFile with each query result. Right-click on QueryTable processor, then Configure and Settings tab and you will see that by default Run Schedule is set to 0 seconds. That means query after query. You can change the interval to more seconds as such a new query will be fired later. Keep in mind that your query can be also smart to pick-up only new records. Is query doing that?&lt;/P&gt;&lt;P&gt;+++&lt;/P&gt;&lt;P&gt;If this helped, please vote/accept best answer.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 01:15:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159023#M57138</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2017-03-16T01:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Files Duplicating using QueryDatabaseTable and PutFile</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159024#M57139</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3486/cstanca.html" nodeid="3486"&gt;@Constantin Stanca&lt;/A&gt; Thank for the follow up.  This was very helpful in addition to Umair's answer.  I changed the query to pick up the max rowid for the new records.  Again, very helpful tip!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 20:05:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Files-Duplicating-using-QueryDatabaseTable-and-PutFile/m-p/159024#M57139</guid>
      <dc:creator>Kelvin_Mitchell</dc:creator>
      <dc:date>2017-03-17T20:05:29Z</dc:date>
    </item>
  </channel>
</rss>

