<?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: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242203#M204006</link>
    <description>&lt;P&gt;Thanks, I've noticed that too, after posting. While -S kadmin/admin worked, the -S kadmin/FQDN didn't. So reconfiguring this part on the KDC solved the problem. It's just interesting that I didn't bump into this on HDP 2.6 Ambari.&lt;/P&gt;&lt;P&gt;About the future release of Ambari -- any ETA yet? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 22:02:14 GMT</pubDate>
    <dc:creator>mRabramS</dc:creator>
    <dc:date>2019-01-15T22:02:14Z</dc:date>
    <item>
      <title>.KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242201#M204004</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm trying to kerberize the Ambari 2.7.3 cluster. However, during the setup, I get the following error:&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.ambari.server.serveraction.kerberos.KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found (filename: /tmp/ambari_krb_142308985016794830cc) while initializing kadmin interface
        at org.apache.ambari.server.serveraction.kerberos.MITKerberosOperationHandler.invokeKAdmin(MITKerberosOperationHandler.java:323)
        at org.apache.ambari.server.serveraction.kerberos.MITKerberosOperationHandler.principalExists(MITKerberosOperationHandler.java:123)
        at org.apache.ambari.server.serveraction.kerberos.KerberosOperationHandler.testAdministratorCredentials(KerberosOperationHandler.java:314)
        at org.apache.ambari.server.controller.KerberosHelperImpl.validateKDCCredentials(KerberosHelperImpl.java:2133)&lt;/PRE&gt;&lt;P&gt;All of the authentication settings are okay, because I am able to kinit and use the kadmin interface from shell. &lt;/P&gt;&lt;P&gt;It seems that the problem is that Ambari tries to do the following:&lt;/P&gt;&lt;PRE&gt;kinit -p admin/admin@EXAMPLE.COM
kadmin -c /tmp/ambari_krb_...&lt;/PRE&gt;&lt;P&gt;While it &lt;STRONG&gt;should be doing&lt;/STRONG&gt; the following:&lt;/P&gt;&lt;PRE&gt;kinit -S kadmin/admin@EXAMPLE.COM admin/admin@EXAMPLE.COM
kadmin -c /tmp/ambari_krb...&lt;/PRE&gt;&lt;P&gt;I've tried replicating the two settings and confirmed my guess. The second code works from the shell. Further, If I intercept the temporarily generated credentials by ambari with my own, the code works. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I fix this behaviour? This seem like a bug in Ambari code -- which part should I edit to fix this?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 19:14:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242201#M204004</guid>
      <dc:creator>mRabramS</dc:creator>
      <dc:date>2019-01-15T19:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242202#M204005</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19219/saulius1122.html" nodeid="19219"&gt;@Javert Kirilov&lt;/A&gt;  In Ambari 2.7.x, the MIT KDC connector logic uses the following kinit format:&lt;/P&gt;&lt;PRE&gt;kinit -S kadmin/&amp;lt;FQDN kadmin server&amp;gt;@EXAMPLE.COM admin/admin@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;See &lt;A target="_blank"&gt;https://github.com/apache/ambari/blob/branch-2.7/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java#L336-L346&lt;/A&gt; for the code.&lt;/P&gt;&lt;P&gt;This is different then what you suggest since the server principal is basically hardcoded to kadmin/&amp;lt;FQDN kadmin server&amp;gt;@&amp;lt;REALM&amp;gt;.  Since not all installations of the MIT KDC have this principal set up, this can cause issues like what you are seeing.  In the newer release of Ambari, we have this fixed and the user can override the kadmin server principal.  So until that version is release, it is suggested that you manually create that missing principal. &lt;/P&gt;&lt;P&gt;Hopefully you are willing to try this is see if it works for you. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:57:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242202#M204005</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2019-01-15T21:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242203#M204006</link>
      <description>&lt;P&gt;Thanks, I've noticed that too, after posting. While -S kadmin/admin worked, the -S kadmin/FQDN didn't. So reconfiguring this part on the KDC solved the problem. It's just interesting that I didn't bump into this on HDP 2.6 Ambari.&lt;/P&gt;&lt;P&gt;About the future release of Ambari -- any ETA yet? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 22:02:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242203#M204006</guid>
      <dc:creator>mRabramS</dc:creator>
      <dc:date>2019-01-15T22:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242204#M204007</link>
      <description>&lt;P&gt;I do not have any information on in the release date of the next version of Ambari.&lt;/P&gt;&lt;P&gt;This way of authenticating to the kadmin server is new for Ambari 2.7, so your issue would not have been seen in previous versions &lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 00:55:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/242204#M204007</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2019-01-16T00:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/313998#M225842</link>
      <description>&lt;P&gt;Still have the same issue ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m sure the configuration files are okay!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 20:01:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/313998#M225842</guid>
      <dc:creator>Aziz_G</dc:creator>
      <dc:date>2021-04-04T20:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/314010#M225851</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/87314"&gt;@Aziz_G&lt;/a&gt;&amp;nbsp;as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 07:40:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/314010#M225851</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-04-05T07:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: .KerberosOperationException: Unexpected error condition executing the kadmin command. STDERR: kadmin: Matching credential not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/314146#M225893</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55507"&gt;@mRabramS&lt;/a&gt;&amp;nbsp;Can you share how you reconfigure the KDC ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32119"&gt;@VidyaSargur&lt;/a&gt;&amp;nbsp;I’m really sorry , I opened a new thread but there’s no response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KerberosOperationException-Unexpected-error-condition/m-p/314146#M225893</guid>
      <dc:creator>Aziz_G</dc:creator>
      <dc:date>2021-04-06T15:29:58Z</dc:date>
    </item>
  </channel>
</rss>

