<?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: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48751#M41302</link>
    <description>I met the same problem. Anybody have any idea? Thanks.</description>
    <pubDate>Thu, 22 Dec 2016 09:46:16 GMT</pubDate>
    <dc:creator>zhuangmz</dc:creator>
    <dc:date>2016-12-22T09:46:16Z</dc:date>
    <item>
      <title>Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/45376#M41301</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;after we enabled Kerberos (AD) on the cluster using the Wizard, Impala failed to start, meanwhile the other services didn't have problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the Principal passed at the StateStore from the Catalog Server is wrong, even if it's configuration has no issues, indeed, as you can see in the logs, the principal has the "at" at the end without the Realm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here there are some informations that can be useful:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;OS&lt;/STRONG&gt;: Red Hat Enterprise Linux Server release 7.2 (Maipo)&lt;BR /&gt;&lt;STRONG&gt;CDH Parcel&lt;/STRONG&gt;: 5.8.0-1.cdh5.8.0.p0.42&lt;BR /&gt;&lt;STRONG&gt;Cloudera Manager&lt;/STRONG&gt;: 5.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Service hosts:&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Master&lt;/STRONG&gt; (clouderavalm1):&lt;OL&gt;&lt;LI&gt;Imapala Catalog Server - fails&lt;/LI&gt;&lt;LI&gt;Impala StateStore - success (but gives the problem of the Principal when the catalog tries to authenticate)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Other Nodes&lt;/STRONG&gt; (clouderavaln0[1-3]):&lt;OL&gt;&lt;LI&gt;Impala Daemon - fails&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;EM&gt;Configurations&lt;/EM&gt;:&lt;BR /&gt;&lt;STRONG&gt;krb5.conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[libdefaults]
default_realm = REALM.COM
dns_lookup_kdc = false
dns_lookup_realm = false
ticket_lifetime = 86400
renew_lifetime = 604800
forwardable = true
default_tgs_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5
default_tkt_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5
permitted_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5
udp_preference_limit = 1
kdc_timeout = 3000
[realms]
REALM.COM = {
kdc = realm.com
admin_server = realm.com
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Catalog Server stack trace:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;F0921 12:46:36.956574 24185 catalogd-main.cc:76] RPC Error: write() send(): Broken pipe
. Impalad exiting.
*** Check failure stack trace: ***
@ 0x1b465dd (unknown)
@ 0x1b48f06 (unknown)
@ 0x1b460fd (unknown)
@ 0x1b499ae (unknown)
@ 0x7f77db (unknown)
@ 0x7c39c6 (unknown)
@ 0x7f1289e7cb15 __libc_start_main
@ 0x7f658d (unknown)
Picked up JAVA_TOOL_OPTIONS: -Xms4294967296 -Xmx4294967296 -XX:OnOutOfMemoryError=/usr/lib64/cmf/service/common/killparent.sh&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StateStore stack trace:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;E0921 12:46:36.836042 23719 authentication.cc:155] SASL message (Kerberos (internal)): GSSAPI Error: Unspecified GSS failure.
Minor code may provide more information (No key table entry found matching impala/clouderavalm1@)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here there are the flags auto generated&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;Catalog&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;-catalog_service_port=26000
-max_log_files=10
-enable_webserver=true
-load_auth_to_local_rules=true
-load_catalog_in_background=true
-webserver_port=25020
-kerberos_reinit_interval=60
-principal=impala/CLOUDERAVALM1@REALM.COM
-keytab_file=/run/cloudera-scm-agent/process/818-impala-CATALOGSERVER/impala.keytab
-log_filename=catalogd
-statestore_subscriber_timeout_seconds=30
-state_store_host=CLOUDERAVALM1
-state_store_port=24000
-minidump_path=/var/log/impala-minidumps
-max_minidumps=9&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StateStore&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;-state_store_pending_task_count_max=0
-max_log_files=10
-state_store_port=24000
-enable_webserver=true
-webserver_port=25010
-state_store_num_server_worker_threads=4
-kerberos_reinit_interval=60
-principal=impala/CLOUDERAVALM1@REALM.COM
-keytab_file=/run/cloudera-scm-agent/process/820-impala-STATESTORE/impala.keytab
-log_filename=statestored
-minidump_path=/var/log/impala-minidumps
-max_minidumps=9&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here the keytabs auto generated (in the directory: (/run/cloudera-scm-agent/process/...)&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;Catalog&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 1 impala/CLOUDERAVALM1@REALM.COM
2 1 impala/CLOUDERAVALM1@REALM.COM
3 1 impala/CLOUDERAVALM1@REALM.COM
4 1 impala/CLOUDERAVALM1@REALM.COM
5 1 impala/CLOUDERAVALM1@REALM.COM
6 1 impala/CLOUDERAVALM1@REALM.COM&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;State store:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 1 impala/CLOUDERAVALM1@REALM.COM
2 1 impala/CLOUDERAVALM1@REALM.COM
3 1 impala/CLOUDERAVALM1@REALM.COM
4 1 impala/CLOUDERAVALM1@REALM.COM
5 1 impala/CLOUDERAVALM1@REALM.COM
6 1 impala/CLOUDERAVALM1@REALM.COM&lt;/PRE&gt;&lt;P&gt;If necessary, we can provide also other logs.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/45376#M41301</guid>
      <dc:creator>raff0z</dc:creator>
      <dc:date>2022-09-16T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48751#M41302</link>
      <description>I met the same problem. Anybody have any idea? Thanks.</description>
      <pubDate>Thu, 22 Dec 2016 09:46:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48751#M41302</guid>
      <dc:creator>zhuangmz</dc:creator>
      <dc:date>2016-12-22T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48935#M41303</link>
      <description>The KDC and admin settings in krb5.conf should point to actually DC hostnames and not just the domain name.&lt;BR /&gt;&lt;BR /&gt;Also check the logs directly on the hosts. I have had better luck sifting through the logs there vs CM role logs.&lt;BR /&gt;&lt;BR /&gt;It is failing to authenticate but no clear info on why.&lt;BR /&gt;&lt;BR /&gt;Try logging in using the impala keytab generated in the running process directory. Kinit -kt /path/to/impala.keytab.</description>
      <pubDate>Sun, 01 Jan 2017 06:29:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48935#M41303</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-01-01T06:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48944#M41304</link>
      <description>&lt;P&gt;When you mention you have the same problem, what is the exact error you are getting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the original issue in this post, we see two items that can cause issues for kerberos in Hadoop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) hosts with no domains (even .local would do)&lt;/P&gt;&lt;P&gt;(2) Capital letters on hostnames.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have this configured the hostname with all capitals: &amp;nbsp;impala/CLOUDERAVALM1@REALM.COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to have the best chance of getting kerberos to work, I would recommend verifying the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) &amp;nbsp;All hosts have Fully-qualified domain names. &amp;nbsp;For instance, "hostname" should return the hostname and "hostname -f" should return the FQDN.&lt;/P&gt;&lt;P&gt;(2) &amp;nbsp;If relying on the hosts file for resolution, make sure that you are using the following format:&lt;/P&gt;&lt;P&gt;IP FQDN HOSTNAME&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10.0.0.2 &amp;nbsp; myhost.example.com myhost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3) &amp;nbsp;Make sure you use only uppercase host names. &amp;nbsp;Hadoop is sensitive to this at the moment. &amp;nbsp;Though technically valid, it will cause problems for sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(4) &amp;nbsp;Ensure all hosts can resolve eachother with forward and reverse DNS (with FQDN).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the main problem you are facing is dealing with the uppercase hostnames without a domain. &amp;nbsp;It'll work fine without Kerberos involved, but when intoducing Kerberos, the rules change a bit to support that method of authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you make the network changes, make sure to regenerate credentials for all roles so that the correct principals are created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is a good start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 17:16:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/48944#M41304</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2017-01-01T17:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/49033#M41305</link>
      <description>Hi, Ben. I solved my problem case. Hostnames and DNS are fine. saslauthd service must be installed and enabled in every host. Thanks.</description>
      <pubDate>Wed, 04 Jan 2017 00:38:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/49033#M41305</guid>
      <dc:creator>zhuangmz</dc:creator>
      <dc:date>2017-01-04T00:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Catalog Server and Impala Daemons failing tostart after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/93220#M41306</link>
      <description>&lt;P&gt;is a &lt;STRONG&gt;bit&lt;/STRONG&gt; late but i post the solution that worked for me.&lt;/P&gt;&lt;P&gt;the problem was the hostnames, impala with kerberos wants the hostnames in lowercase.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 17:00:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Catalog-Server-and-Impala-Daemons-failing-tostart/m-p/93220#M41306</guid>
      <dc:creator>raff0z</dc:creator>
      <dc:date>2019-07-25T17:00:39Z</dc:date>
    </item>
  </channel>
</rss>

