<?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 with hortonworks stack 18.04 ubuntu in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243004#M204803</link>
    <description>&lt;P&gt;&lt;EM&gt;Part 3 of the previous kerberization document &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 08:53:11 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-01-29T08:53:11Z</dc:date>
    <item>
      <title>Kerberos with hortonworks stack 18.04 ubuntu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243002#M204801</link>
      <description>&lt;P&gt;We have tried several attempts to get the hortonworks platform to work with kerberos using the ambari automated install.  the errors are below. any advice to offer is appreciated.  Tried to install manually the krb5-user  but seems I am getting broken package errors, not sure of that was a good approach afer the automated failed.&lt;/P&gt;&lt;PRE&gt;2019-01-28 22:35:23,105 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-28 22:35:23,142 - Skipping installation of existing package unzip
2019-01-28 22:35:23,143 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-28 22:35:23,177 - Skipping installation of existing package curl
2019-01-28 22:35:23,177 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-28 22:35:23,211 - Skipping installation of existing package hdp-select
2019-01-28 22:35:23,214 - The repository with version 3.1.0.0-78 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2019-01-28 22:35:23,218 - Skipping stack-select on KERBEROS because it does not exist in the stack-select package structure.
2019-01-28 22:35:23,347 - Package['krb5-user'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-28 22:35:23,384 - Installing package krb5-user ('/usr/bin/apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install krb5-user')&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243002#M204801</guid>
      <dc:creator>tburke</dc:creator>
      <dc:date>2022-09-16T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos with hortonworks stack 18.04 ubuntu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243003#M204802</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Tom Burke"&gt;@Tom Burke&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;EM&gt;Setup the Server:&lt;/EM&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Install Kerberos KDC and Admin Server&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ apt update &amp;amp;&amp;amp; apt upgrade -y 
$ apt install krb5-kdc krb5-admin-server krb5-config -y 
$ krb5_newrealm&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Locate and edit the krb5.conf &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 default_realm = TEST.COM
 dns_lookup_realm = false
 dns_lookup_kdc = false
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true

[realms]
 TEST.COM = {
  kdc = server.test.com
  admin_server = server.test.com
 }

[domain_realm]
 .test.com = TEST.COM
 test.com = TEST.COM
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;KDC configuration&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Locate and edit the kdc.conf  /etc/krb5kdc/kdc.conf. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[kdcdefaults]
 kdc_ports = 88
 kdc_tcp_ports = 88

[realms]
  TEST.COM = {
  #master_key_type = aes256-cts
  acl_file = /var/kerberos/krb5kdc/kadm5.acl
  dict_file = /usr/share/dict/words
  admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
  supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
 }
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Create the Kerberos database&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This should pick your REALM for the krb5.conf and kdc.conf you will be prompted for a master password keep it preciously it will be useful for the Ambari Kerberos wizard&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# /usr/sbin/kdb5_util create -s&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Loading random data &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Initializing database '/var/kerberos/krb5kdc/principal' for realm 'TEST.COM', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;master key name 'K/M@TEST.COM' &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You will be prompted for the database Master Password. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It is important that you NOT FORGET this password. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Enter KDC database master key: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Re-enter KDC database master key to verify:&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Locate and edit the kadm5.acl&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Assign Administrator Privilege by editing the kadm5.acl in  &lt;STRONG&gt;/var/kerberos/krb5kdc/kadm5.acl &lt;/STRONG&gt;replace the EXAMPLE.COM with your realm&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;*/admin@TEST.COM *&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Restart the KDC and kadmin &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set the 2 daemons to auto start at boot else your cluster won't start&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# /etc/rc.d/init.d/krb5kdc start 
Starting Kerberos 5 KDC: [ OK ] 
# /etc/rc.d/init.d/kadmin start 
Starting Kerberos 5 Admin Server: &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Create a Kerberos Admin &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Use the same master password &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kadmin.local -q "addprinc admin/admin" &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Authenticating as principal root/admin@TEST.COM with password. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WARNING: no policy specified for admin/admin@TEST.COM; defaulting to no policy &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Enter password for principal "admin/admin@TEST.COM": &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Re-enter password for principal "admin/admin@TEST.COM": &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Principal "admin/admin@TEST.COM" created.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check if the root principal was created&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Go to Ambari and enable Kerberos&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;See attached Kerberos setup for HDP 3.1  they are quite similar  save for the new UI&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 08:52:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243003#M204802</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-29T08:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos with hortonworks stack 18.04 ubuntu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243004#M204803</link>
      <description>&lt;P&gt;&lt;EM&gt;Part 3 of the previous kerberization document &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 08:53:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243004#M204803</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-29T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos with hortonworks stack 18.04 ubuntu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243005#M204804</link>
      <description>&lt;P&gt;
	Thanks Again!  I do believe I found my issue.  the repos where not complete and accurate  on my ubuntu 18.04 builds , so I just copied repos from my xenial 16.04 box  and replaced xenial with ubuntu then was able to install lafter update the kerberos client.
&lt;/P&gt;
&lt;P&gt;
	here was my final repo for ubuntu 18.04
&lt;/P&gt;
&lt;PRE&gt;
	deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic main restricted
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic-updates main restricted
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic universe
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic-updates universe
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic multiverse
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic-updates multiverse
deb &lt;A href="http://us.archive.ubuntu.com/ubuntu/" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/A&gt; bionic-backports main restricted universe multiverse
deb &lt;A href="http://security.ubuntu.com/ubuntu" target="_blank"&gt;http://security.ubuntu.com/ubuntu&lt;/A&gt; bionic-security main restricted
deb &lt;A href="http://security.ubuntu.com/ubuntu" target="_blank"&gt;http://security.ubuntu.com/ubuntu&lt;/A&gt; bionic-security universe
deb &lt;A href="http://security.ubuntu.com/ubuntu" target="_blank"&gt;http://security.ubuntu.com/ubuntu&lt;/A&gt; bionic-security multiverse
&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2019 09:50:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-with-hortonworks-stack-18-04-ubuntu/m-p/243005#M204804</guid>
      <dc:creator>tburke</dc:creator>
      <dc:date>2019-01-29T09:50:24Z</dc:date>
    </item>
  </channel>
</rss>

