<?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 how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197104#M159157</link>
    <description>&lt;P&gt;when we kerberized cluster from ambari we see keytabs are generated automatically for the user , we do not provide any password but ambari does , I want to know how does ambari does this .&lt;/P&gt;&lt;P&gt;for e.g if I have user for whom i want to generate keytab I will do the following steps :&lt;/P&gt;&lt;P&gt;kadmin.local:  addprinc user1@TEST.COM&lt;/P&gt;&lt;P&gt;WARNING:no policy specified for user1@TEST.COM; defaulting to no policy&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Enter password for principal "user1@TEST.COM": // here we are providing the password but when ambari does the same for the service user like hdfs what password does it set and how it does the same ? is there some script in the server which enables the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Re-enter password for principal "user1@TEST.COM":&lt;/P&gt;&lt;P&gt;Principal"user1@TEST.COM" created.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2018 19:09:13 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2018-10-01T19:09:13Z</dc:date>
    <item>
      <title>how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197104#M159157</link>
      <description>&lt;P&gt;when we kerberized cluster from ambari we see keytabs are generated automatically for the user , we do not provide any password but ambari does , I want to know how does ambari does this .&lt;/P&gt;&lt;P&gt;for e.g if I have user for whom i want to generate keytab I will do the following steps :&lt;/P&gt;&lt;P&gt;kadmin.local:  addprinc user1@TEST.COM&lt;/P&gt;&lt;P&gt;WARNING:no policy specified for user1@TEST.COM; defaulting to no policy&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Enter password for principal "user1@TEST.COM": // here we are providing the password but when ambari does the same for the service user like hdfs what password does it set and how it does the same ? is there some script in the server which enables the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Re-enter password for principal "user1@TEST.COM":&lt;/P&gt;&lt;P&gt;Principal"user1@TEST.COM" created.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 19:09:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197104#M159157</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-10-01T19:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197105#M159158</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@ Anurag Mishra"&gt; @Anurag Mishra&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When you are kerberizing the cluster through Ambari you MUST first provide an admin principal and password  which you created after creating your KDC databases&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kdb5_util create -s&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;You are then required to create  an &lt;/EM&gt;&lt;I&gt;admin principal and password  &lt;/I&gt;&lt;/P&gt;&lt;PRE&gt;# kadmin.local -q "addprinc admin/admin"&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;The warning&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;You will be prompted for the database Master Password. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;It is important that you NOT FORGET this password. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Enter KDC database master key: &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Re-enter KDC database master key to verify:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This the input requested when kerberizing through Ambari it will ask for &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;root/admin@{REALM} /password &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Only after passing the correct values on the &lt;STRONG&gt;Enable Kerberos UI &lt;/STRONG&gt; that you can proceed to generate successfully the keytabs. So to answer your question the Ambari picks your decrypts your admin password against the &lt;STRONG&gt;KDC&lt;/STRONG&gt; private key and the allows you to generate the keytabs.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.0.0/authentication-with-kerberos/content/kerberos_launching_the_kerberos_wizard_automated_setup.html" target="_blank"&gt; Hortonworks Kerberos document&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;See attached screenshot illustration&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7950iFC6BB74E7CA051E3/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="kdc.jpg" title="kdc.jpg" /&gt;</description>
      <pubDate>Mon, 01 Oct 2018 20:39:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197105#M159158</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-01T20:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197106#M159159</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply !!!&lt;/P&gt;&lt;P&gt;but i was interested in knowing what password ambari use for the service like hdfs , hbase etc . Providing the admin password allows amabri to generate keytabs for the service user but internally it would be using some password at service level .    &lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 21:26:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197106#M159159</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-10-01T21:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197107#M159160</link>
      <description>&lt;P&gt;AFAIK, A random password is set for all the principals (hdfs , hbase , hive ..etc) . &lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:05:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197107#M159160</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-10-02T13:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197108#M159161</link>
      <description>&lt;P&gt;&lt;EM&gt; &lt;A href="https://community.hortonworks.com/questions/222663/@%20Anurag%20Mishra"&gt;@Anurag Mishra&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The passwords generated randomly and encrypted using the supported encryption algorithms like fingerprints which are checked against the KDC databases for validity when you run the &lt;STRONG&gt;kinit&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197108#M159161</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-02T17:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: how does ambari set password while creating keytab for the service user like hdfs , hbase , hive ..etc</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197109#M159162</link>
      <description>&lt;P&gt;&lt;EM&gt; &lt;A href="https://community.hortonworks.com/questions/222663/@%20Anurag%20Mishra"&gt;@Anurag Mishra&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If the response answered your question can you take time an login and "A&lt;STRONG&gt;ccept"  &lt;/STRONG&gt;&lt;/EM&gt;&lt;I&gt;the answer &lt;/I&gt;&lt;I&gt;and close the thread&lt;STRONG&gt; &lt;/STRONG&gt;so other members can use it as a solution &lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 14:05:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-does-ambari-set-password-while-creating-keytab-for-the/m-p/197109#M159162</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-03T14:05:16Z</dc:date>
    </item>
  </channel>
</rss>

