<?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 keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/398855#M250318</link>
    <description>&lt;P&gt;I run the database "ASK_SELL" with 43 millions of records with size of 122 GB in Hadoop. Its run for almost 1 hour and 40 minutes and stop it with the error message bellow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Execute error:[Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code:0, SQL state: null, Query: SELECT 1 -- /* keep alive */, Error message from Server: Invalid SessionHandle: SessionHandle&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: File deletion failed for DESTINO2.BENEF_CONC.DATA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Whats going on ?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 06:22:52 GMT</pubDate>
    <dc:creator>zorrofrombrasil</dc:creator>
    <dc:date>2026-04-21T06:22:52Z</dc:date>
    <item>
      <title>keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/398855#M250318</link>
      <description>&lt;P&gt;I run the database "ASK_SELL" with 43 millions of records with size of 122 GB in Hadoop. Its run for almost 1 hour and 40 minutes and stop it with the error message bellow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Execute error:[Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code:0, SQL state: null, Query: SELECT 1 -- /* keep alive */, Error message from Server: Invalid SessionHandle: SessionHandle&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: File deletion failed for DESTINO2.BENEF_CONC.DATA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Whats going on ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:22:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/398855#M250318</guid>
      <dc:creator>zorrofrombrasil</dc:creator>
      <dc:date>2026-04-21T06:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/398869#M250323</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/122513"&gt;@zorrofrombrasil&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92016"&gt;@ggangadharan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45798"&gt;@james_jones&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 23:51:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/398869#M250323</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-12-13T23:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/399376#M250482</link>
      <description>&lt;UL&gt;&lt;LI&gt;The error message &lt;STRONG&gt;Invalid SessionHandle: SessionHandle&lt;/STRONG&gt;&amp;nbsp;commonly occurs in Hive when there is an issue with the session handle being used.&lt;/LI&gt;&lt;LI&gt;A session handle in Hive is a unique identifier for a session created when a user connects to Hive, used to maintain the state and context of the session.&lt;/LI&gt;&lt;LI&gt;One possible scenario for this error is when a table contains a large number of records and the cluster has multiple HS2 instances. If Knox is used to connect to Hive, Knox might connect to one HS2 and run a query. However, due to the large number of records, the query takes longer to process. If the connection times out from Knox's end and reconnects to another HS2, the query might fail with the "Invalid SessionHandle" error.&lt;/LI&gt;&lt;LI&gt;To investigate this scenario, it is recommended to check the HS2 logs and Knox logs. Additionally, to determine why the query is running long, checking the HS2 and appLogs for any yarn job initiated by HS2 can provide further insights.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 27 Dec 2024 04:21:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/399376#M250482</guid>
      <dc:creator>ggangadharan</dc:creator>
      <dc:date>2024-12-27T04:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/399388#M250484</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/122513"&gt;@zorrofrombrasil&lt;/a&gt;&amp;nbsp;How are you running this job? Is it through Zeppelin or any JDBC app? The reason I ask is because I see a keep-alive query "SELECT 1" being run, so the session does not go idle.&lt;/P&gt;&lt;P&gt;Nevertheless, this "&lt;STRONG&gt;Invalid SessionHandle&lt;/STRONG&gt;" could appear if the connection has switched over to a different hiveserver2 instance. The reason could be a network glitch, or any communication drop(timeout) at the middle layer such as Load Balancer/Knox(if in use).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we are dealing with such large data size, it is better to use a native thrift client like "beeline" that can be run in a Screen so it is not interrupted when a user closes a terminal, or shuts down the client computer.&amp;nbsp; For JDBC application, make sure &lt;STRONG&gt;SocketTimeout&lt;/STRONG&gt; is disabled(value = 0), and&amp;nbsp;&lt;STRONG&gt;hive.server2.idle.operation.timeout&lt;/STRONG&gt; &amp;amp;&amp;nbsp;&lt;STRONG&gt;hive.server2.idle.session.timeout&amp;nbsp;&lt;/STRONG&gt;are set to large values like 6hrs and 8hrs respectively in Hive configuration.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 10:30:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/399388#M250484</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2024-12-27T10:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: keep alive  -  Error message from Server: Invalid SessionHandle: SessionHandle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/401672#M251273</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/122513"&gt;@zorrofrombrasil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you get a chance to check the updates from&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92016"&gt;@ggangadharan&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;?&lt;/P&gt;&lt;P&gt;If so, did the information help to fix the issue? or Do you have any other concerns?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 19:50:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/keep-alive-Error-message-from-Server-Invalid-SessionHandle/m-p/401672#M251273</guid>
      <dc:creator>rsanchez</dc:creator>
      <dc:date>2025-02-07T19:50:45Z</dc:date>
    </item>
  </channel>
</rss>

