<?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 -&amp;gt; Hive Broke Pipe Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-gt-Hive-Broke-Pipe-Error/m-p/331403#M230882</link>
    <description>&lt;P&gt;I was having the same problem, but I couldn't find any properties in the driver documentation that would help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This error, in my case, occurred to the detriment of the connection with the database breaking due to some reason of infrastructure or service failure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I noticed that it was possible to solve this problem in two ways using the controller service &lt;STRONG&gt;DBCPConnectionPool&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- You can set a generic query in the&lt;STRONG&gt; Validation Query parameter&lt;/STRONG&gt;. This way, at each new transaction with the database, the connection will be recreated executing this query. This can be a good alternative, however, if your flow performs many queries, it will slow down the processing slightly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- You can change the &lt;STRONG&gt;Max Connection Lifetime&lt;/STRONG&gt; parameter, set a value other than -1 or 0. This value is the time interval in which your connection will be recreated with the database. For example, if you set 5 min, the connection will be recreated every five minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In my case the problem has been fixed, I hope I have helped.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 14:30:33 GMT</pubDate>
    <dc:creator>franciscofelix</dc:creator>
    <dc:date>2021-12-01T14:30:33Z</dc:date>
    <item>
      <title>NIFI -&gt; Hive Broke Pipe Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-gt-Hive-Broke-Pipe-Error/m-p/331316#M230857</link>
      <description>&lt;P&gt;Hey, we are running a Nifi cluster that connects to a Hive database to pull some data. After a period of time we get the below error.&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;LI-CODE lang="markup"&gt;: java.net.SocketException: Broken pipe (Write failed).: java.sql.SQLException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (Write failed)&lt;/LI-CODE&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;Our current solution is to restart the Hive Controller services and this refresh's the connection and the process works again, this is obviously not ideal for a production implementation. We have also set the Kerberos user's timeout to be a large number of days in the hive-site.xml but the issue still persists. We are running Nifi version 1.12.1. Any help is very much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 13:45:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-gt-Hive-Broke-Pipe-Error/m-p/331316#M230857</guid>
      <dc:creator>mickt</dc:creator>
      <dc:date>2021-11-30T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI -&gt; Hive Broke Pipe Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-gt-Hive-Broke-Pipe-Error/m-p/331403#M230882</link>
      <description>&lt;P&gt;I was having the same problem, but I couldn't find any properties in the driver documentation that would help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This error, in my case, occurred to the detriment of the connection with the database breaking due to some reason of infrastructure or service failure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I noticed that it was possible to solve this problem in two ways using the controller service &lt;STRONG&gt;DBCPConnectionPool&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- You can set a generic query in the&lt;STRONG&gt; Validation Query parameter&lt;/STRONG&gt;. This way, at each new transaction with the database, the connection will be recreated executing this query. This can be a good alternative, however, if your flow performs many queries, it will slow down the processing slightly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- You can change the &lt;STRONG&gt;Max Connection Lifetime&lt;/STRONG&gt; parameter, set a value other than -1 or 0. This value is the time interval in which your connection will be recreated with the database. For example, if you set 5 min, the connection will be recreated every five minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In my case the problem has been fixed, I hope I have helped.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 14:30:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-gt-Hive-Broke-Pipe-Error/m-p/331403#M230882</guid>
      <dc:creator>franciscofelix</dc:creator>
      <dc:date>2021-12-01T14:30:33Z</dc:date>
    </item>
  </channel>
</rss>

