<?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: Ambari Web ui Kerberos HTTP error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215314#M69145</link>
    <description>&lt;P&gt;is "hostname" in HTTP/hostname@RELAY.COM, literally "hostname" or did you replace that for the purposes of this query?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 22:25:33 GMT</pubDate>
    <dc:creator>rlevas</dc:creator>
    <dc:date>2017-10-06T22:25:33Z</dc:date>
    <item>
      <title>Ambari Web ui Kerberos HTTP error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215313#M69144</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am getting this error almost in all services installed can someone help us&lt;/P&gt;&lt;PRE&gt;Connection failed to &lt;A href="http://hostname:50070" target="_blank"&gt;http://hostname:50070&lt;/A&gt; (Execution of '/usr/bin/kinit -c /var/lib/ambari-agent/tmp/curl_krb_cache/web_alert_ambari-qa_cc_196393db8ad8461dac739b8ea56294c7 -kt /etc/security/keytabs/spnego.service.keytab HTTP/hostname@RELAY.COM &amp;gt; /dev/null' returned 1. kinit: Keytab contains no suitable keys for HTTP/hostname@RELAY.COM while getting initial credentials)&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2017 22:12:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215313#M69144</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-10-06T22:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Web ui Kerberos HTTP error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215314#M69145</link>
      <description>&lt;P&gt;is "hostname" in HTTP/hostname@RELAY.COM, literally "hostname" or did you replace that for the purposes of this query?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 22:25:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215314#M69145</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2017-10-06T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Web ui Kerberos HTTP error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215315#M69146</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/28152/sunilreddykallur.html"&gt;Sam Red&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There could be a couple of reasons here.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;First make sure the KDC and Kadmin is running assuming you are on RHEL/Centos7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check the current status these 2 deamons should be running&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl status krb5kdc.service
# systemctl status kadmin.service &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;If they are not running please, enable them so at next reboot they autostart&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl enable kadmin.service
# systemctl enable krb5kdc.service&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Start the services&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl start krb5kdc.service 
# systemctl start kadmin.service&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;As the root user check that the principals are in the KDC database&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# kadmin.local 
Authenticating as principal root/admin@RELAY.COM with password. 
kadmin.local: listprincs&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;First forcefully expire the current kerberos credentials, log on as user hdfs or whatever &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# kdestroy &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Validate that no credentials are cached &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# klist
klist: No credentials cache found (filename: /tmp/krb5cc_0) &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To see what keytab entries in that keytab file, use klist &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# klist -kte  /etc/security/keytabs/spnego.service.keytab
Keytab name: FILE:/etc/security/keytabs/spnego.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 08/24/2017 15:42:23 HTTP/hostname@RELAY.COM (aes256-cts-hmac-sha1-96)
   1 08/24/2017 15:42:23 HTTP/hostname@RELAY.COM (des-cbc-md5)
   1 08/24/2017 15:42:23 HTTP/hostname@RELAY.COM (arcfour-hmac)
   1 08/24/2017 15:42:23 HTTP/hostname@RELAY.COM (aes128-cts-hmac-sha1-96)
   1 08/24/2017 15:42:23 HTTP/hostname@RELAY.COM (des3-cbc-sha1)&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; The grab a valid kerberos  using the info above &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# kinit -kt /etc/security/keytabs/spnego.service.keytab  HTTP/hostname@RELAY.COM &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now retry&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 00:20:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215315#M69146</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-07T00:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Web ui Kerberos HTTP error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215316#M69147</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:22:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Web-ui-Kerberos-HTTP-error/m-p/215316#M69147</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-10-07T01:22:20Z</dc:date>
    </item>
  </channel>
</rss>

