<?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: Kerberos wizard does not Kerberize Ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168886#M131204</link>
    <description>&lt;P&gt;In 2.4.2 you have to manually setup Ambari principal and keytab&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_Security_Guide/content/_set_up_kerberos_for_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_Security_Guide/content/_set_up_kerberos_for_ambari_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see the same documentation for 2.5.3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_set_up_kerberos_for_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_set_up_kerberos_for_ambari_server.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 05:01:55 GMT</pubDate>
    <dc:creator>dvillarreal</dc:creator>
    <dc:date>2016-12-23T05:01:55Z</dc:date>
    <item>
      <title>Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168884#M131202</link>
      <description>&lt;P&gt;Ambari 2.4.2.0 and HDP 2.5.3.0-37&lt;/P&gt;&lt;P&gt;Running Kerberos wizard to Kerberize the cluster, all HDP components are Kerberized successfully, but Ambari itself is not Kerberized. I can see the ambari-server principle being added to MIT KDC, but there is no keytab for that principle under /etc/security/keytab on Ambari server. This cause all the views not working. &lt;/P&gt;&lt;P&gt;I did the manual step to Kerberize Ambari and everything is fine afterward. I am pretty sure back in the last version of Ambari, it was Kerberized by the wizard. Not sure if this is a change of behavior or some other things caused it. Ambari server was running under ambari-server rather than root account before Kerberos wizard, not sure if that change anything.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 02:46:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168884#M131202</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-12-23T02:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168885#M131203</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3090/qiwang.html" nodeid="3090"&gt;@Qi Wang&lt;/A&gt;&lt;P&gt;Since Ambari is running a non-privileged user, it is possible that the keytab file failed to be moved into place due to permission issues.   Make sure that the sudoers file is setup properly - for example, see &lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/sudoer_configuration_server.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/sudoer_configuration_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is needed due to a change made for Ambari 2.4.0 where Ambari, by default, creates it own Kerberos identity and distribute its keytab file to itself. Sudo is needed to this due to permission issues writing to /etc/security/keytabs.&lt;/P&gt;&lt;P&gt;To confirm this is the issue, you might want to take a look at the ambari-server.log to see if there are any relevant error posted.  I, unfortunately, do know the exact wording to look for off the top of my head. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 05:01:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168885#M131203</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-12-23T05:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168886#M131204</link>
      <description>&lt;P&gt;In 2.4.2 you have to manually setup Ambari principal and keytab&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_Security_Guide/content/_set_up_kerberos_for_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_Security_Guide/content/_set_up_kerberos_for_ambari_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see the same documentation for 2.5.3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_set_up_kerberos_for_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_set_up_kerberos_for_ambari_server.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 05:01:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168886#M131204</guid>
      <dc:creator>dvillarreal</dc:creator>
      <dc:date>2016-12-23T05:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168887#M131205</link>
      <description>&lt;P&gt;look at the note on 2.5.3 doc, "If you performed the &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/_launching_the_kerberos_wizard_automated_setup.html"&gt;Automated Kerberos Setup&lt;/A&gt;, these steps are performed automatically (and therefore, you do not need to perform the steps below)."&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 05:10:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168887#M131205</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-12-23T05:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168888#M131206</link>
      <description>&lt;P&gt;However, in Ambari 2.4.x and up it should create the principal and keytabs automatically.  I have seen where this didn't happen prior to 2.4.2 on 2.4.0.1 and 2.4.1&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 05:49:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168888#M131206</guid>
      <dc:creator>dvillarreal</dc:creator>
      <dc:date>2016-12-23T05:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168889#M131207</link>
      <description>&lt;P&gt;If the non-root user missing permission, it still get all the keytab for other users copied and chown done. Not sure why it only failed on Ambari itself. Will try do this again and look at the log to see if there is any abnormally.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 05:56:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168889#M131207</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-12-23T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168890#M131208</link>
      <description>&lt;P&gt;The Ambari agent handles the other keytab files.  If this is working, then it is either running at root or sudo has been properly set up for it. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 06:04:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168890#M131208</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-12-23T06:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168891#M131209</link>
      <description>&lt;P&gt;I reproduced the same problem again.&lt;/P&gt;&lt;P&gt;1. change ambari to run with non-root before Kerberos, (also change it to run HTTPS, encrypt password for ambari and sync ldap user)&lt;/P&gt;&lt;P&gt;2. Kerberos wizard with MIT KDC&lt;/P&gt;&lt;P&gt;In log I found&lt;/P&gt;&lt;PRE&gt;23 Dec 2016 01:45:51,007  INFO [Server Action Executor Worker 333] CreateKeytabFilesServerAction:193 - Creating keytab file for ambari-server@FIELD.HORTONWORKS.COM on host ambari_server

&lt;/PRE&gt;&lt;P&gt;So look like the process did try to create the keytab&lt;/P&gt;&lt;P&gt;But under /etc/security/keytab, there is no ambari.server.keytab, I also try find any warning or error in ambari-server.log that indicates anything went wrong, but see nothing related.&lt;/P&gt;&lt;P&gt;And also include the cmd for creating the non-root user for ambari-server, ambari-agent is still running under root user&lt;/P&gt;&lt;PRE&gt;useradd -d /var/lib/ambari-server -G hadoop -M -r -s /sbin/nologin ambari-user
echo 'ambari-user ALL=(ALL) NOPASSWD:SETENV: /bin/mkdir, /bin/cp, /bin/chmod, /bin/rm' &amp;gt; /etc/sudoers.d/ambari-server

&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Dec 2016 10:35:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168891#M131209</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-12-23T10:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168892#M131210</link>
      <description>&lt;P&gt;After the "Create Keytabs" stage, is there a "Configure Ambari Identity" stage?  If so, did it pass? If not, maybe your sudo rules are incorrect.  Trying yours&lt;/P&gt;&lt;PRE&gt;ambari-user ALL=(ALL) NOPASSWD:SETENV: /bin/mkdir, /bin/cp, /bin/chmod, /bin/rm&lt;/PRE&gt;&lt;P&gt;My "Configure Ambari Identity" stage failed.  &lt;/P&gt;&lt;P&gt;Changing the rule to&lt;/P&gt;&lt;PRE&gt;ambari-user ALL=(ALL) NOPASSWD:SETENV: /bin/mkdir, /bin/cp, /bin/chmod, /bin/chown, /bin/chgroup, /bin/rm &lt;/PRE&gt;&lt;P&gt;did the trick for me. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 22:58:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168892#M131210</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-12-23T22:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos wizard does not Kerberize Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168893#M131211</link>
      <description>&lt;P&gt;There was a failure during "Configure Ambari Identity", but retry passed. So I thought it was not really a problem. I am sure the sudo rule is the problem. Will try again and let you know the outcome. &lt;/P&gt;&lt;P&gt;Update the sudo permission and got another error: "you must have a tty to run sudo". this turns out to be related to sudo setting, use visudo to comment requiretty fixed the problem&lt;/P&gt;&lt;PRE&gt;visudo
#Defaults    requiretty

&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 00:51:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-wizard-does-not-Kerberize-Ambari/m-p/168893#M131211</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-12-24T00:51:53Z</dc:date>
    </item>
  </channel>
</rss>

