<?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 Kerberos Ticket issue when using cache type DIR in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Ticket-issue-when-using-cache-type-DIR/m-p/239892#M201698</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We came across a requirement to maintain kerberos ticket for 2 different realms on a single node, at the same time.&lt;/P&gt;&lt;P&gt;We found that Kerberos supports collection cache types, as on v1.12. We implemented DIR cache type, upon which we are able to generate and maintain tickets for 2 realms at the same time. Klist -A successfully lists both the tickets.&lt;/P&gt;&lt;P&gt;However, none of the Hadoop clients (hdfs,beeline) are able to find tickets from the DIR cache directory.&lt;/P&gt;&lt;P&gt;Below is the [libdefaults] cache name config from krb5.conf,&lt;/P&gt;&lt;PRE&gt;default_ccache_name = DIR:/tmp/tickets&lt;/PRE&gt;&lt;P&gt;Along with this, we are also setting KRB5CCNAME, KRB5RCACHEDIR, although it shouldn't matter when we already have the same setting in krb5.conf.&lt;/P&gt;&lt;P&gt;The hadoop clients throw the below error,&lt;/P&gt;&lt;PRE&gt;javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/PRE&gt;&lt;P&gt;Upon some investigation found that Java Kerberos implementation specifically looks for FILE: type cache, and hadoop is dependent on it.&lt;/P&gt;&lt;P&gt;However, I am interested to know if there is any workaround to force them to use collection cache types (DIR/API/KEYRING).&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 22:27:20 GMT</pubDate>
    <dc:creator>swathi_desai6</dc:creator>
    <dc:date>2019-05-07T22:27:20Z</dc:date>
  </channel>
</rss>

