<?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: Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/380520#M244082</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108051"&gt;@RenoldSingh&lt;/a&gt;, have any of the replies&amp;nbsp;helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 10:03:17 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2023-12-08T10:03:17Z</dc:date>
    <item>
      <title>Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379517#M243877</link>
      <description>&lt;P&gt;I'm encountering occasional Exception when using PUTSQL processor in apache Nifi.&lt;BR /&gt;&lt;BR /&gt;I have already Increased&amp;nbsp;innodb_lock_wait_timeout But I'm still encountering the error occasionally. How can I fix this error? And what are the optimal configurations when using putsql processor to insert large volume of records into mariadb?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 749px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38997i259255B7DEC4BFF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 779px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38996i956261CC41477C74/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Variable_name;Value&lt;BR /&gt;innodb_lock_wait_timeout;300&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error Snippet:&lt;BR /&gt;2023-11-24 18:04:45,837 ERROR [Timer-Driven Process Thread-51] o.apache.nifi.processors.standard.PutSQL PutSQL[id=c7255d17-018b-1000-143e-fc839881330c] Failed to update database due to a failed batch update, java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction. There were a total of 1 FlowFiles that failed, 14 that succeeded, and 0 that were not execute and will be routed to retry;&lt;BR /&gt;java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction&lt;BR /&gt;at com.mysql.cj.jdbc.exceptions.SQLError.createBatchUpdateException(SQLError.java:224)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 05:57:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379517#M243877</guid>
      <dc:creator>RenoldSingh</dc:creator>
      <dc:date>2023-11-24T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379524#M243878</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108051"&gt;@RenoldSingh&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&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/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 07:10:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379524#M243878</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-11-24T07:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379568#M243883</link>
      <description>&lt;P&gt;The reported behavior with&amp;nbsp;&lt;SPAN&gt;Lock wait timeout in Mysql/MariaDB is not in control of NiFi PutSQL, You have to check your DB Table for possible issues.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 13:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379568#M243883</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2023-11-24T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379763#M243921</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;is Correct.&amp;nbsp; &amp;nbsp;For large volume ingestion into the receiving host, you need a maria db host that can handle 1000s of transactions per second.&amp;nbsp; &amp;nbsp;Nifi can easily exceed default configurations for total connections.&amp;nbsp; &amp;nbsp;With a well tuned highly available mariadb,&amp;nbsp; you can crank up execution time and concurrency on nifi and get 10,000s+ transactions per second.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:02:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/379763#M243921</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-11-28T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NIFI: Occasional Exception with PUTSQL Processor java.sql.BatchUpdateException: Lock wait timeout exceeded</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/380520#M244082</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108051"&gt;@RenoldSingh&lt;/a&gt;, have any of the replies&amp;nbsp;helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 10:03:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NIFI-Occasional-Exception-with-PUTSQL-Processor-java/m-p/380520#M244082</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-12-08T10:03:17Z</dc:date>
    </item>
  </channel>
</rss>

