<?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: hue - impala query on hue, returns error - TSocket read 0 bytes in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411987#M253183</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/8448"&gt;@Boris G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we believe the problem is with Impala and not Hue, as the same error is occurring when trying to connect directly to the Impala daemon host with Impala-shell.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 12:14:19 GMT</pubDate>
    <dc:creator>yagoaparecidoti</dc:creator>
    <dc:date>2025-07-31T12:14:19Z</dc:date>
    <item>
      <title>hue - impala query on hue, returns error - TSocket read 0 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411754#M253151</link>
      <description>&lt;P&gt;hi community cloudera,&lt;/P&gt;&lt;P&gt;recently, we've been receiving the following error when querying impala on hue:&lt;/P&gt;&lt;P&gt;queryerror: tsocket read 0 bytes (code thrifttransport): ttransportexception('tsocket read 0 bytes',)&lt;/P&gt;&lt;P&gt;- the "query_timeout_s" and "session_timeout_s" parameters have already been set to 2 hours in the hue settings.&lt;BR /&gt;- the hs2 and impala thrift connection timeout has already been set to 2 hours in the hue settings.&lt;BR /&gt;- the hs2 authentication timeout has already been set to kerberos in the hue settings.&lt;BR /&gt;- the "proxytimeout" parameter has already been set to 10 minutes in the hue settings.&lt;/P&gt;&lt;P&gt;and we're still receiving this error.&lt;/P&gt;&lt;P&gt;has anyone experienced this issue and managed to resolve it?&lt;/P&gt;&lt;P&gt;we're using cdh 6.3.4.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:17:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411754#M253151</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2026-04-21T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: hue - impala query on hue, returns error - TSocket read 0 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411907#M253166</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;The error means that the socket connection cannot be instantiated or was closed by the peer.&lt;/P&gt;&lt;P&gt;In the setup, the most likely reasons are:&lt;/P&gt;&lt;P&gt;a. the coordinator to which Hue is trying to connect is down&lt;/P&gt;&lt;P&gt;b. the coordinator to which hue is trying to connect has its front end connections pool maxed out&lt;/P&gt;&lt;P&gt;c. the coordinator is down or not listening on the port forwarded by the loadbalancer&lt;/P&gt;&lt;P&gt;d. a network connectivity issue (including a faulty loadbalancer)&lt;/P&gt;&lt;P&gt;A good alternative test would be to run an impaal-shell connection to the same coordinator:&lt;/P&gt;&lt;P&gt;impala-shell -b &amp;lt;loadbalancer FQDN&amp;gt; -i &amp;lt;coordinator FQDN&amp;gt; ..... &amp;lt;the rest of the impala-shell parameters&amp;gt;&lt;/P&gt;&lt;P&gt;- if the same issue cannot be reproduced then the issue is likely on the Hue side (network as mentioned and/or a port to which Hue is configured to connect), else&lt;/P&gt;&lt;P&gt;- the issue is likely with the coordinator itself (it cannot accept new connections - front end connection pool is maxed out or the daemon itself is in a bad state. Usually restart should help then.&lt;/P&gt;&lt;P&gt;There is also a slight chance that your kerberos is misconfigured - if the issue happens only when you run a Hue connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see there may be many reasons to what is happening. We usually investigate these kinds of issues via analyzing logs and traces in Cloudera Support tickets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 17:33:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411907#M253166</guid>
      <dc:creator>Boris G</dc:creator>
      <dc:date>2025-07-29T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: hue - impala query on hue, returns error - TSocket read 0 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411987#M253183</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/8448"&gt;@Boris G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we believe the problem is with Impala and not Hue, as the same error is occurring when trying to connect directly to the Impala daemon host with Impala-shell.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 12:14:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411987#M253183</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2025-07-31T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: hue - impala query on hue, returns error - TSocket read 0 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411988#M253184</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/8448"&gt;@Boris G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;example of an error collected in the impalad log:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;E0731 04:30:49.177050 59498 authentication.cc:164] SASL message (Kerberos (external)): GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Clock skew too great)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;error when trying to connect to impalad with impala-shell:&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Error connecting: TTransportException, TSocket read 0 bytes&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Researching this error (&lt;STRONG&gt;Clock skew too great&lt;/STRONG&gt;), it's something related to NTP synchronization, but the NTP service is synchronized with KDC (AD), as shown in the chronyd tracking command:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ref time (UTC): Thu Jul 31 12:25:09 2025&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date command:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thu Jul 31 09:25:14 -03 2025&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS: My timezone is -3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 13:14:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/411988#M253184</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2025-07-31T13:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: hue - impala query on hue, returns error - TSocket read 0 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/412000#M253186</link>
      <description>&lt;P&gt;The "&lt;EM&gt;&lt;STRONG&gt;Clock skew too great" &lt;/STRONG&gt;&lt;/EM&gt;error in your release (which is out of maintenance due to its age) usually happens when the daemon is overloaded and KRPC is *not* enabled (&lt;SPAN&gt;--use_krpc=false in the Impala safety valve). That is likely why you see those errors. Although - certain overload conditions trigger unusual errors regardless.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is likely why you get the rejection on any client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can try several things:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a. make sure&amp;nbsp;"--use_krpc=false" is not in the current Impala configs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b. adjust the workload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c. if you get the error with near zero load *after the coordinator restart* that definitely points at a network issue as I have alluded to before&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d. make sure the coordinator host's kernel settings are adequate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;kernel.pid_max = 1048480&lt;BR /&gt;vm.max_map_count = 1048480&lt;BR /&gt;kernel.pid_max = 2000000&lt;BR /&gt;vm.max_map_count = 8000000&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 17:57:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-impala-query-on-hue-returns-error-TSocket-read-0-bytes/m-p/412000#M253186</guid>
      <dc:creator>Boris G</dc:creator>
      <dc:date>2025-07-31T17:57:41Z</dc:date>
    </item>
  </channel>
</rss>

