<?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: PutHiveQL executed the same query twice!!! in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/PutHiveQL-executed-the-same-query-twice/m-p/412626#M253577</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114407"&gt;@Rashad_K&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What does NiFI provenance show for the duplicate inserts?&lt;BR /&gt;Do you see the same NiFi FlowFile (by FlowFile UUID) being successfully inserted?&lt;BR /&gt;&lt;BR /&gt;Does the issue persist if your change the run duration from 25ms to 0ms?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2025 17:44:58 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-10-08T17:44:58Z</dc:date>
    <item>
      <title>PutHiveQL executed the same query twice!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveQL-executed-the-same-query-twice/m-p/412612#M253567</link>
      <description>&lt;P&gt;Hello there..&amp;nbsp;&lt;BR /&gt;I am using replacetext processor where i am using the below query as my replacement value.&lt;/P&gt;&lt;P&gt;INSERT into log_hive.log_ozone_retention_jobs&lt;BR /&gt;(Table_Name,Process_Date, Process ,Status ,Source_Count ,Target_Count ,Start_Time ,End_Time ,Notes)&lt;BR /&gt;select 'Customer_Voip',${date_list}, 'Insert_Into_Ozone','Insert Successful',${source_count},null,'${start_time}',current_timestamp(),null;&lt;BR /&gt;&lt;BR /&gt;date_list is an attribute value coming along with the incoming flowfile..&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My downstream processor is&amp;nbsp;PutHiveQL where it executes the insert query provided above..&amp;nbsp; I was successfully able to insert a single record for that day using the&amp;nbsp;&amp;nbsp;PutHiveQL processor.. However, today i found that&amp;nbsp;PutHiveQL actually inserted 2 records for the same day as below... the incoming flowfile had date_list value as 20250401 for example and is expected to insert only 1 record but inserted 2 records with 2 different end time... this happened with all the dates that were meant to be loaded...&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashad_K_1-1759845915895.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46374i1AC2E95F8EB813ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashad_K_1-1759845915895.png" alt="Rashad_K_1-1759845915895.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PutHiveQL processor configuration..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashad_K_2-1759846022776.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46375i5C0A7A9AC05FA4A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashad_K_2-1759846022776.png" alt="Rashad_K_2-1759846022776.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashad_K_3-1759846058034.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46376i6D63552D19F9BFA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashad_K_3-1759846058034.png" alt="Rashad_K_3-1759846058034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Interestingly, I have used the same processor in the next process group and doing the same insert but for other purpose and as per expectations it has inserted only 1 record per date_list/process_date.. and just to inform that i am using the similar logic atleast 8-10 times within the nifi flow and is running correctly without any duplicated records..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashad_K_4-1759846196706.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46377i7ED22E07F7904842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashad_K_4-1759846196706.png" alt="Rashad_K_4-1759846196706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can somebody please let me know what is the issue or am i missing something ?&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 14:15:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveQL-executed-the-same-query-twice/m-p/412612#M253567</guid>
      <dc:creator>Rashad_K</dc:creator>
      <dc:date>2025-10-07T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveQL executed the same query twice!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveQL-executed-the-same-query-twice/m-p/412626#M253577</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114407"&gt;@Rashad_K&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What does NiFI provenance show for the duplicate inserts?&lt;BR /&gt;Do you see the same NiFi FlowFile (by FlowFile UUID) being successfully inserted?&lt;BR /&gt;&lt;BR /&gt;Does the issue persist if your change the run duration from 25ms to 0ms?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 17:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveQL-executed-the-same-query-twice/m-p/412626#M253577</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-10-08T17:44:58Z</dc:date>
    </item>
  </channel>
</rss>

