<?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 Killing HiveSessions with longer connection times in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172640#M45930</link>
    <description>&lt;P&gt;We have a requirement where, if there is any query which is taking up more time from HS2 session then terminate the connection and kill the job. To address this we have set below properties but we are seeing that jobs in YARN are not getting killed and running for more than two hours.&lt;/P&gt;&lt;P&gt;hive.server2.session.check.interval = 60000 (in ms) # 10 minutes
hive.server2.idle.operation.timeout = 1800000 (in ms) # 30 minutes
hive.server2.idle.session.timeout = 2400000 (in ms) # 40 minutes&lt;/P&gt;&lt;P&gt;Does setting below properties kill the related running YARN application after idle session time out. If not, is there any property which we need to set in HiveServer2 to kill long running queries. &lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 13:46:42 GMT</pubDate>
    <dc:creator>sparepally</dc:creator>
    <dc:date>2016-11-11T13:46:42Z</dc:date>
    <item>
      <title>Killing HiveSessions with longer connection times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172640#M45930</link>
      <description>&lt;P&gt;We have a requirement where, if there is any query which is taking up more time from HS2 session then terminate the connection and kill the job. To address this we have set below properties but we are seeing that jobs in YARN are not getting killed and running for more than two hours.&lt;/P&gt;&lt;P&gt;hive.server2.session.check.interval = 60000 (in ms) # 10 minutes
hive.server2.idle.operation.timeout = 1800000 (in ms) # 30 minutes
hive.server2.idle.session.timeout = 2400000 (in ms) # 40 minutes&lt;/P&gt;&lt;P&gt;Does setting below properties kill the related running YARN application after idle session time out. If not, is there any property which we need to set in HiveServer2 to kill long running queries. &lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 13:46:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172640#M45930</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2016-11-11T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Killing HiveSessions with longer connection times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172641#M45931</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;Even if session gets timedout, YARN will retry attempt upto 3 more times and application will get killed if all 4 attempts are failed. That might be the reason why your YARN application runs longer. &lt;/P&gt;&lt;P&gt;Please refer below thread for more information.&lt;/P&gt;&lt;P&gt;&lt;A href="https://qnalist.com/questions/4398360/how-to-terminate-a-running-hive-query-executed-with-jdbc-hive-server-2" target="_blank"&gt;https://qnalist.com/questions/4398360/how-to-terminate-a-running-hive-query-executed-with-jdbc-hive-server-2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 20:56:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172641#M45931</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-11T20:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Killing HiveSessions with longer connection times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172642#M45932</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;Thanks for your inputs, &lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 01:49:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Killing-HiveSessions-with-longer-connection-times/m-p/172642#M45932</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2016-11-12T01:49:08Z</dc:date>
    </item>
  </channel>
</rss>

