<?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 hive controller service failing daily in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226237#M77662</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; Wanted to know, &lt;STRONG&gt;to add the "Validation query" is really mandatory to have to run the controller service or not&lt;/STRONG&gt;? &lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 21:16:23 GMT</pubDate>
    <dc:creator>ijgour</dc:creator>
    <dc:date>2019-07-30T21:16:23Z</dc:date>
    <item>
      <title>nifi hive controller service failing daily</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226234#M77659</link>
      <description>&lt;P&gt;I am running a hive controller for puthivql processor.&lt;/P&gt;&lt;P&gt;It is failing daily with error&lt;/P&gt;&lt;P&gt;'failed to process sesion due to org.apache,nifi.processor.exception.ProcessorException: org.apache.commons.dbcp.SQLNestedException: cannot create PoolableConnectionFactory'&lt;/P&gt;&lt;P&gt;When I restart the controller service, it works till next day&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="71454-untitled.jpg" style="width: 390px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15370iC57A6CEB39A6F3EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="71454-untitled.jpg" alt="71454-untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please help me how to overcome this error or is there a way to restart controller services automatically or scheduled restart of controller services.&lt;/P&gt;&lt;P&gt;Suggestions are highly appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:28:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226234#M77659</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2019-08-18T01:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: nifi hive controller service failing daily</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226235#M77660</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/23208/hadoopuserhadoop.html" nodeid="23208"&gt;@Mark&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method1:-&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;Add the validation query in your Hive Connection Pool controller service as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Validation query
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;select current_timestamp&lt;/PRE&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;PRE&gt;select 1&lt;/PRE&gt;
This Validation query used to&lt;STRONG&gt; validate connections before returning them&lt;/STRONG&gt;. When a borrowed connection is &lt;STRONG&gt;invalid,&lt;/STRONG&gt; it gets &lt;STRONG&gt;dropped and a new valid connection will be returned&lt;/STRONG&gt;.
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method2:-&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;By using restApi we can stop the processor and disable/enable the connection pool controller service as we can schedule this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:-&lt;/STRONG&gt;&lt;BR /&gt;1.Stop the HiveQL Processor&lt;/P&gt;&lt;P&gt;2.Disable Hive Connection Pool&lt;/P&gt;&lt;P&gt;3.Enable Hive Connection Pool&lt;/P&gt;&lt;P&gt;4.Start HiveQL Processor&lt;/P&gt;&lt;P&gt;I have answered similar kind of issue in &lt;A href="https://community.hortonworks.com/questions/140732/dbcpconnection-pool-drops-connection.html" target="_blank"&gt;this&lt;/A&gt; link with all detailed explanation about restapi commands, please use the link as reference.&lt;BR /&gt;_&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:11:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226235#M77660</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-04-25T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: nifi hive controller service failing daily</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226236#M77661</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;P&gt;I already have a validation query and have max wait time to 60 sec, it did not help.&lt;/P&gt;&lt;P&gt;I will check using the rest api&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:52:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226236#M77661</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2018-04-25T16:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: nifi hive controller service failing daily</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226237#M77662</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; Wanted to know, &lt;STRONG&gt;to add the "Validation query" is really mandatory to have to run the controller service or not&lt;/STRONG&gt;? &lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 21:16:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/nifi-hive-controller-service-failing-daily/m-p/226237#M77662</guid>
      <dc:creator>ijgour</dc:creator>
      <dc:date>2019-07-30T21:16:23Z</dc:date>
    </item>
  </channel>
</rss>

