Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hi, I Have trying to install kerberos on my HDP 2.6 sandbox,

avatar
Explorer

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

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Noor elkindy

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

.

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Noor elkindy

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

.

avatar
Master Mentor

avatar
Master Mentor

@Noor elkindy

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.

.

avatar
Explorer

It works, I really can't thank you enough