<?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: Enabling Oozie and Storm Web UI using Cross Realm in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96462#M9916</link>
    <description>&lt;P&gt;I have an environment configured that is similar to yours (Hadoop cluster uses realm XYC.COM, but users can use  XYC.COM, ABC.COM, ZET.COM). Users that have a valid Kerberos ticket can use the Storm or Oozie UI, which are secured with Spnego. What Kerberos version is this ? MIT KDC?&lt;/P&gt;&lt;P&gt;Can you post your OS, Java, HDP version? thanks&lt;/P&gt;&lt;P&gt;The error you are getting is related secret key (KVNO=Key version number) that is used to authenticate your user with the KDC and to obtain and encrypt the Kerberos tickets.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A tag associated with encrypted data identifies which key was used for encryption when a long-lived key associated with a principal changes over time. It is used during the transition to a new key so that the party decrypting a message can tell whether the data &lt;/EM&gt;&lt;EM&gt;was encrypted with the old or the new key.&lt;/EM&gt; (&lt;A target="_blank" href="http://www.ietf.org/rfc/rfc4120.txt"&gt;RFC-4120&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;The error occurs because the key version of your ticket is different than the one on the KDC server. This happens for example when the user changes its password or a new secret key is generated for the service principals and the Keytab files contain the old KVNO.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;User gets ticket from KDC with kvno=1&lt;/LI&gt;&lt;LI&gt;User changes password =&amp;gt; KVNO is changed to kvno=2&lt;/LI&gt;&lt;LI&gt;KVNO change is picked up by the server&lt;/LI&gt;&lt;LI&gt;Old User ticket is still valid because user machine was never restarted and the ticket cache never cleared&lt;/LI&gt;&lt;LI&gt;Next access request to the server will fail since the key version numbers are different&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Possible solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Regenerate Keytabs&lt;/LI&gt;&lt;LI&gt;Destroy user ticket and purge cache (reboot should clear cache)&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 24 Nov 2015 02:45:18 GMT</pubDate>
    <dc:creator>jstraub</dc:creator>
    <dc:date>2015-11-24T02:45:18Z</dc:date>
    <item>
      <title>Enabling Oozie and Storm Web UI using Cross Realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96461#M9915</link>
      <description>&lt;P&gt;Have anyone succeeded in configuring/accessing kerberos enabled oozie webui using AD Realm.&lt;/P&gt;&lt;P&gt;Right now our cluster is configured with a local realm that services use and a cross realm that is connected to AD.All the users will be using their enterprise account to get a ticket for using against any hadoop services.&lt;/P&gt;&lt;P&gt;While trying to do the same form our local machine for accessing oozie and strom webui we are facing below exception&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GSSException: Failure unspecified at GSS-API level (Mechanism level: Specified version of key is not available (44))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When verifying the ticket using klist the output is as follows&lt;/P&gt;&lt;P&gt;hw11980:dev msundaram$ klist&lt;/P&gt;&lt;P&gt;Credentials cache: API:3911E669-2B88-401B-8291-0352420190A7&lt;/P&gt;&lt;P&gt;        Principal: &lt;A href="mailto:msundar1@GSM1900.ORG"&gt;msundar1@GSM1900.ORG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;  Issued                Expires               Principal&lt;/P&gt;&lt;P&gt;Nov  2 18:00:58 2015  Nov  3 04:00:58 2015  &lt;A href="mailto:krbtgt/GSM1900.ORG@GSM1900.ORG"&gt;krbtgt/GSM1900.ORG@GSM1900.ORG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nov  2 18:01:13 2015  Nov  3 04:00:58 2015  &lt;A href="mailto:HTTP/devehdp004.unix.gsm1900.org@GSM1900.ORG"&gt;HTTP/devehdp004.unix.gsm1900.org@GSM1900.ORG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When trying with local realm,We are able to access the UI without any issues.And the klist looks like this&lt;/P&gt;&lt;P&gt;hw11980:dev msundaram$ kinit -k -t hdpsrvc.keytab hdpsrvc&lt;/P&gt;&lt;P&gt;hw11980:dev msundaram$ klist&lt;/P&gt;&lt;P&gt;Credentials cache: API:C30071FF-156B-4608-940F-3C10D800F519&lt;/P&gt;&lt;P&gt;        Principal: &lt;A href="mailto:hdpsrvc@HDP_EIT_DEV.com"&gt;hdpsrvc@HDP_EIT_DEV.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;  Issued                Expires               Principal&lt;/P&gt;&lt;P&gt;Nov  2 18:06:49 2015  Nov  3 18:06:49 2015  &lt;A href="mailto:krbtgt/HDP_EIT_DEV.com@HDP_EIT_DEV.com"&gt;krbtgt/HDP_EIT_DEV.com@HDP_EIT_DEV.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nov  2 18:06:57 2015  Nov  3 18:06:49 2015  &lt;A href="mailto:HTTP/devehdp004.unix.gsm1900.org@HDP_EIT_DEV.com"&gt;HTTP/devehdp004.unix.gsm1900.org@HDP_EIT_DEV.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hw11980:dev msundaram$ &lt;/P&gt;&lt;P&gt;We are not sure how to handle the SPENGO Ticket[ &lt;A href="mailto:HTTP/devehdp004.unix.gsm1900.org@GSM1900.ORG"&gt;HTTP/devehdp004.unix.gsm1900.org@GSM1900.ORG&lt;/A&gt;] that is created for AD.&lt;/P&gt;&lt;P&gt;Anyone has succeeded configuring this earlier?&lt;/P&gt;&lt;P&gt;We need help on configuring this.&lt;/P&gt;&lt;P&gt;Right now we have configured HUE with Oozie but it goes down frequently as already too many users are using it for HIVE/HDFS.&lt;/P&gt;&lt;P&gt;The same is working in our QAT environment and our klist looks like this&lt;/P&gt;&lt;P&gt;
hw11980:dev msundaram$ klist 
Credentials cache: API:22D5D25B-E5F2-4372-AFB2-34B0944DA683 
Principal: msundar1@GSMTEST.ORG 

Issued Expires Principal 
Nov 2 18:22:52 2015 Nov 3 04:22:52 2015 krbtgt/GSMTEST.ORG@GSMTEST.ORG 
hw11980:dev msundaram$ klist 
Credentials cache: API:22D5D25B-E5F2-4372-AFB2-34B0944DA683 
Principal: msundar1@GSMTEST.ORG 

Issued Expires Principal 
Nov 2 18:22:52 2015 Nov 3 04:22:52 2015 krbtgt/GSMTEST.ORG@GSMTEST.ORG 
Nov 2 18:58:33 2015 Nov 3 04:22:52 2015 krbtgt/HDP_EIT_QAT.COM@GSMTEST.ORG &lt;/P&gt;&lt;P&gt;Nov 2 18:58:33 2015 Nov 3 04:22:52 2015 HTTP/qatehdp003.unix.gsm1900.org@HDP_EIT_QAT.COM&lt;/P&gt;&lt;P&gt;So it invokes the krbtgt/HDP_EIT_QAT.COM@GSMTEST.ORG cross realm service principal properly&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 00:36:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96461#M9915</guid>
      <dc:creator>msundaram1</dc:creator>
      <dc:date>2015-11-04T00:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Oozie and Storm Web UI using Cross Realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96462#M9916</link>
      <description>&lt;P&gt;I have an environment configured that is similar to yours (Hadoop cluster uses realm XYC.COM, but users can use  XYC.COM, ABC.COM, ZET.COM). Users that have a valid Kerberos ticket can use the Storm or Oozie UI, which are secured with Spnego. What Kerberos version is this ? MIT KDC?&lt;/P&gt;&lt;P&gt;Can you post your OS, Java, HDP version? thanks&lt;/P&gt;&lt;P&gt;The error you are getting is related secret key (KVNO=Key version number) that is used to authenticate your user with the KDC and to obtain and encrypt the Kerberos tickets.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A tag associated with encrypted data identifies which key was used for encryption when a long-lived key associated with a principal changes over time. It is used during the transition to a new key so that the party decrypting a message can tell whether the data &lt;/EM&gt;&lt;EM&gt;was encrypted with the old or the new key.&lt;/EM&gt; (&lt;A target="_blank" href="http://www.ietf.org/rfc/rfc4120.txt"&gt;RFC-4120&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;The error occurs because the key version of your ticket is different than the one on the KDC server. This happens for example when the user changes its password or a new secret key is generated for the service principals and the Keytab files contain the old KVNO.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;User gets ticket from KDC with kvno=1&lt;/LI&gt;&lt;LI&gt;User changes password =&amp;gt; KVNO is changed to kvno=2&lt;/LI&gt;&lt;LI&gt;KVNO change is picked up by the server&lt;/LI&gt;&lt;LI&gt;Old User ticket is still valid because user machine was never restarted and the ticket cache never cleared&lt;/LI&gt;&lt;LI&gt;Next access request to the server will fail since the key version numbers are different&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Possible solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Regenerate Keytabs&lt;/LI&gt;&lt;LI&gt;Destroy user ticket and purge cache (reboot should clear cache)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 24 Nov 2015 02:45:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96462#M9916</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-11-24T02:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Oozie and Storm Web UI using Cross Realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96463#M9917</link>
      <description>&lt;P&gt;As you are accesing it from the Cross realm, your widows-based clients should know the KDC location to create proper SPNEGO token. You need either create a separate policy in your AD for that type of users or you can manually from command line add mappings in client machine's registeries so that they would know about your Hadoop realm KDC:&lt;/P&gt;&lt;P&gt;          ksetup /addkdc
HADOOP.DOMAIN.COM hadoop.nodewithkdc.com &lt;/P&gt;&lt;P&gt;          ksetup /addhosttorealmmap hadoop.nodewithkdc.com HADOOP.DOMAIN.COM&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 18:39:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-Oozie-and-Storm-Web-UI-using-Cross-Realm/m-p/96463#M9917</guid>
      <dc:creator>oleksii_yermole</dc:creator>
      <dc:date>2016-08-26T18:39:04Z</dc:date>
    </item>
  </channel>
</rss>

