Created 01-24-2018 01:28 PM
My problem is that I've been following a lot of documents that can help me with installing, and after finishing all the steps,I've found that krb5kdc or kadmin is not running / enabling. for example when i type " service kadmin start " or " service krb5kdc start" command. its doesnt do /show me anything. i tried many other commands " systemctl start krb5kdc" or " systemctl enable krb5kdc". So does anyone knows what is the problem.
PS. the last document that I've been following is this video : https://www.youtube.com/watch?v=-pBh7fgV6w4&t=434s
Created 01-24-2018 01:38 PM
Please try this:
1. Make sure that you have logged in to Sandbox SSH shell only at port 2222
# ssh root@localhost -p 2222 Enter Password: hadoop
2. Please make sure to disable the Sandbox Dev Yum repo by setting "enabled=0" as following: (to know why we should do this please refer to: https://community.hortonworks.com/questions/143887/problem-installing-ambari-metrics-collector.html)
# cat /etc/yum.repos.d/sandbox.repo [sandbox] baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/ name=Sandbox repository (tutorials) gpgcheck=0 enabled=0
3. Please perform a Yum cleanup
# yum clean all
4. Now you will need to install the following packages:
# yum install krb5-server krb5-libs krb5-workstation -y
5. Then perform the "/etc/krb5.conf" edits based on your requirement.
6. Create Kerberos Database by running the following command (Please remember the value which you are going to enter for the "master key". I entered "master" )
# kdb5_util create -s
7. Start the KDC server and the KDC admin server as following:
# /etc/rc.d/init.d/krb5kdc start # /etc/rc.d/init.d/kadmin start
.
Created 01-24-2018 01:38 PM
Please try this:
1. Make sure that you have logged in to Sandbox SSH shell only at port 2222
# ssh root@localhost -p 2222 Enter Password: hadoop
2. Please make sure to disable the Sandbox Dev Yum repo by setting "enabled=0" as following: (to know why we should do this please refer to: https://community.hortonworks.com/questions/143887/problem-installing-ambari-metrics-collector.html)
# cat /etc/yum.repos.d/sandbox.repo [sandbox] baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/ name=Sandbox repository (tutorials) gpgcheck=0 enabled=0
3. Please perform a Yum cleanup
# yum clean all
4. Now you will need to install the following packages:
# yum install krb5-server krb5-libs krb5-workstation -y
5. Then perform the "/etc/krb5.conf" edits based on your requirement.
6. Create Kerberos Database by running the following command (Please remember the value which you are going to enter for the "master key". I entered "master" )
# kdb5_util create -s
7. Start the KDC server and the KDC admin server as following:
# /etc/rc.d/init.d/krb5kdc start # /etc/rc.d/init.d/kadmin start
.
Created 01-24-2018 01:41 PM
A good detailed discussion can be found here.
https://community.hortonworks.com/questions/103945/kerberos-setup-on-hdp-26.html
.
Also for Sandbox: http://crazyadmins.com/tag/how-to-configure-kerberos-in-hdp/
Created 01-24-2018 08:56 PM
As the issue is resolved, hence it will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. That way other HCC users can quickly find the solution when they encounter the same issue.
.
Created 01-24-2018 03:07 PM
It works, I really can't thank you enough