<?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: &amp;quot;TSocket read 0 bytes&amp;quot; using Hue Impala Kerberos on CDH5.0.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21218#M3520</link>
    <description>&lt;P&gt;As a follow up, I configured Hadoop Security within Cloudera Manager following&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-0-0/Configuring-Hadoop-Security-with-Cloudera-Manager/cm5chs_using_cm_sec_config.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-0-0/Configuring-Hadoop-Security-with-Cloudera-Manager/cm5chs_using_cm_sec_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things seems OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest problem I faced when configuring Security in CM was I attempted a non-default realm. This triggered a bug and so that the configuration failed, as speciifed in step 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found no such warning in&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/CDH5-Security-Guide.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/CDH5-Security-Guide.html&lt;/A&gt; (or I overlooked). Wondering whether this caused my original failure.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2014 10:57:48 GMT</pubDate>
    <dc:creator>athtsang</dc:creator>
    <dc:date>2014-11-05T10:57:48Z</dc:date>
    <item>
      <title>"TSocket read 0 bytes" using Hue+Impala+Kerberos on CDH5.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21155#M3517</link>
      <description>&lt;P&gt;First of all, I want to configuring Kerberos for Impala only, instead of the whole cluster. Is this possible? If not I should redo everything and please ignore the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH was installed using Parcels. Impala+Kerberos configuration was OK, following&lt;BR /&gt;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/Impala/Installing-and-Using-Impala/ciiu_kerberos.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/Impala/Installing-and-Using-Impala/ciiu_kerberos.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All steps were done except proxy server. I also configured HTTP SPNEGO on Chrome and Firefox, but got&amp;nbsp;no "Authorization:" response header using Hue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For configuring Hue to connect to Impala, I followed steps 1-3, and 5-7 of&lt;BR /&gt;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/cdh5sg_hue_kerberos_config.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/cdh5sg_hue_kerberos_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(actually steps 5-7 were the default values)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 4 seemed incorrect. Instead of following it, I've configured hue_safety_valve.ini as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[desktop]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[[kerberos]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;# Path to Hue's Kerberos keytab file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;hue_keytab=/etc/hue/hue.keytab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;# Kerberos principal name for Hue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;hue_principal=hue/hue_hostname.mydomain.com@MYREALM.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;# add kinit path for non root users&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;kinit_path=/usr/bin/kinit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[impala]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;impala_principal=impala/hue_hostname.mydomain.com@MYREALM.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;impersonation_enabled=False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;server_host=hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[beeswax]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;hive_server_host=hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(I have impalad running on hue_hostname.mydomain.com... Actually do I really need to use ## , or it denotes comment??)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hue "/impala" page showed error message "TSocket read 0 bytes". In /var/log/hue/runcpserver.log, messages like the following were found:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] connectionpool INFO Starting new HTTP connection (1): hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] connectionpool INFO Starting new HTTP connection (1): hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] connectionpool INFO Starting new HTTP connection (1): hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] hive_server2_lib INFO use_sasl=False, mechanism=GSSAPI, kerberos_principal_short_name=impala, impersonation_enabled=False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] thrift_util INFO return from get_client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] thrift_util WARNING Out of retries for thrift call: GetSchemas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:34 -0800] thrift_util INFO Thrift saw a transport exception: TSocket read 0 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:44 -0800] access INFO 192.168.12.34 admin - "GET /desktop/debug/check_config HTTP/1.1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:44 -0800] connectionpool INFO Starting new HTTP connection (1): hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:44 -0800] connectionpool INFO Starting new HTTP connection (1): hue_hostname.mydomain.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:44 -0800] access INFO 192.168.12.34 admin - "GET /jobbrowser/ HTTP/1.1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:45 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:45 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:45 -0800] thrift_util WARNING Out of retries for thrift call: GetSchemas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[03/Nov/2014 21:53:45 -0800] thrift_util INFO Thrift saw a transport exception: TSocket read 0 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(192.168.12.34 is IP address of hue_hostname.mydomain.com. Web access were using IP address)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems quite obvious that Hue failed to connect to Impala. And I think besides impala_principal, Hue need something more to connect (something like a password, keytab, kerberos cache???). But the documentation seems included nothing similar. What am I missing?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 14:00:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21155#M3517</guid>
      <dc:creator>athtsang</dc:creator>
      <dc:date>2026-04-21T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: "TSocket read 0 bytes" using Hue Impala Kerberos on CDH5.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21164#M3518</link>
      <description>AFAIK, about Kerberos, all the services should use it or not, you can't&lt;BR /&gt;just have only Impala use it.&lt;BR /&gt;&lt;BR /&gt;Hue needs a Kerberos ticket too that way it can authenticate with Impala.&lt;BR /&gt;&lt;BR /&gt;Romain&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:15:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21164#M3518</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2014-11-04T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: "TSocket read 0 bytes" using Hue Impala Kerberos on CDH5.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21165#M3519</link>
      <description>&lt;P&gt;Then I will complete enabling Kerberos for whole cluster first. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 10:11:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21165#M3519</guid>
      <dc:creator>athtsang</dc:creator>
      <dc:date>2014-11-04T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: "TSocket read 0 bytes" using Hue Impala Kerberos on CDH5.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21218#M3520</link>
      <description>&lt;P&gt;As a follow up, I configured Hadoop Security within Cloudera Manager following&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-0-0/Configuring-Hadoop-Security-with-Cloudera-Manager/cm5chs_using_cm_sec_config.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-0-0/Configuring-Hadoop-Security-with-Cloudera-Manager/cm5chs_using_cm_sec_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things seems OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest problem I faced when configuring Security in CM was I attempted a non-default realm. This triggered a bug and so that the configuration failed, as speciifed in step 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found no such warning in&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/CDH5-Security-Guide.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-0-0/CDH5-Security-Guide/CDH5-Security-Guide.html&lt;/A&gt; (or I overlooked). Wondering whether this caused my original failure.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 10:57:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-TSocket-read-0-bytes-quot-using-Hue-Impala-Kerberos-on/m-p/21218#M3520</guid>
      <dc:creator>athtsang</dc:creator>
      <dc:date>2014-11-05T10:57:48Z</dc:date>
    </item>
  </channel>
</rss>

