Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-06-2017 03:12 PM
Hi
I am getting this error almost in all services installed can someone help us
Connection failed to http://hostname:50070 (Execution of '/usr/bin/kinit -c /var/lib/ambari-agent/tmp/curl_krb_cache/web_alert_ambari-qa_cc_196393db8ad8461dac739b8ea56294c7 -kt /etc/security/keytabs/spnego.service.keytab HTTP/[email protected] > /dev/null' returned 1. kinit: Keytab contains no suitable keys for HTTP/[email protected] while getting initial credentials)
Created 10-06-2017 05:20 PM
There could be a couple of reasons here.
First make sure the KDC and Kadmin is running assuming you are on RHEL/Centos7
Check the current status these 2 deamons should be running
# systemctl status krb5kdc.service # systemctl status kadmin.service
If they are not running please, enable them so at next reboot they autostart
# systemctl enable kadmin.service # systemctl enable krb5kdc.service
Start the services
# systemctl start krb5kdc.service # systemctl start kadmin.service
As the root user check that the principals are in the KDC database
# kadmin.local Authenticating as principal root/[email protected] with password. kadmin.local: listprincs
First forcefully expire the current kerberos credentials, log on as user hdfs or whatever
# kdestroy
Validate that no credentials are cached
# klist klist: No credentials cache found (filename: /tmp/krb5cc_0)
To see what keytab entries in that keytab file, use klist
# klist -kte /etc/security/keytabs/spnego.service.keytab Keytab name: FILE:/etc/security/keytabs/spnego.service.keytab KVNO Timestamp Principal ---- ------------------- ------------------------------------------------------ 1 08/24/2017 15:42:23 HTTP/[email protected] (aes256-cts-hmac-sha1-96) 1 08/24/2017 15:42:23 HTTP/[email protected] (des-cbc-md5) 1 08/24/2017 15:42:23 HTTP/[email protected] (arcfour-hmac) 1 08/24/2017 15:42:23 HTTP/[email protected] (aes128-cts-hmac-sha1-96) 1 08/24/2017 15:42:23 HTTP/[email protected] (des3-cbc-sha1)
The grab a valid kerberos using the info above
# kinit -kt /etc/security/keytabs/spnego.service.keytab HTTP/[email protected]
Now retry
Created 10-06-2017 03:25 PM
is "hostname" in HTTP/[email protected], literally "hostname" or did you replace that for the purposes of this query?
Created 10-06-2017 05:20 PM
There could be a couple of reasons here.
First make sure the KDC and Kadmin is running assuming you are on RHEL/Centos7
Check the current status these 2 deamons should be running
# systemctl status krb5kdc.service # systemctl status kadmin.service
If they are not running please, enable them so at next reboot they autostart
# systemctl enable kadmin.service # systemctl enable krb5kdc.service
Start the services
# systemctl start krb5kdc.service # systemctl start kadmin.service
As the root user check that the principals are in the KDC database
# kadmin.local Authenticating as principal root/[email protected] with password. kadmin.local: listprincs
First forcefully expire the current kerberos credentials, log on as user hdfs or whatever
# kdestroy
Validate that no credentials are cached
# klist klist: No credentials cache found (filename: /tmp/krb5cc_0)
To see what keytab entries in that keytab file, use klist
# klist -kte /etc/security/keytabs/spnego.service.keytab Keytab name: FILE:/etc/security/keytabs/spnego.service.keytab KVNO Timestamp Principal ---- ------------------- ------------------------------------------------------ 1 08/24/2017 15:42:23 HTTP/[email protected] (aes256-cts-hmac-sha1-96) 1 08/24/2017 15:42:23 HTTP/[email protected] (des-cbc-md5) 1 08/24/2017 15:42:23 HTTP/[email protected] (arcfour-hmac) 1 08/24/2017 15:42:23 HTTP/[email protected] (aes128-cts-hmac-sha1-96) 1 08/24/2017 15:42:23 HTTP/[email protected] (des3-cbc-sha1)
The grab a valid kerberos using the info above
# kinit -kt /etc/security/keytabs/spnego.service.keytab HTTP/[email protected]
Now retry
Created 10-06-2017 06:22 PM
@Geoffrey Shelton Okot Thank you