Support Questions
Find answers, ask questions, and share your expertise

HDP Sandbox 2.6 Automated Kerberos Installation and Configuration

New Contributor

Hello everyone there is my problem :

In order to automated kerberos installation i follow this tutorial for HDP sandbox 2.4 : https://community.hortonworks.com/articles/29203/automated-kerberos-installation-and-configuration.h...

I already try to set up it manually but without success because of a connection problem with the kdc when i try to configure it on ambari web interface.

So i try the tutorial but now i have this problem when i launch it :

017-07-27,13:50:41 Enabling Kerberos

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

137 513 102 513 0 172 12 4 0:00:42 0:00:40 0:00:02 78

HTTP/1.1 400 Bad Request

X-Frame-Options: DENY

X-XSS-Protection: 1; mode=block

X-Content-Type-Options: nosniff

Cache-Control: no-store

Pragma: no-cache

Set-Cookie: AMBARISESSIONID=ka633m5h9um01jqyy6uamrb18;Path=/;HttpOnly

Expires: Thu, 01 Jan 1970 00:00:00 GMT

User: raj_ops

Content-Type: text/plain

Content-Length: 513

Server: Jetty(8.1.19.v20160209)

{

"status" : 400,

"message" : "java.lang.IllegalArgumentException: Invalid KDC administrator credentials.\nThe KDC administrator credentials must be set as a persisted or temporary credential resource.This may be done by issuing a POST (or PUT for updating) to the /api/v1/clusters/:clusterName/credentials/kdc.admin.credential API entry point with the following payload:\n{\n \"Credential\" : {\n \"principal\" : \"(PRINCIPAL)\", \"key\" : \"(PASSWORD)\", \"type\" : \"(persisted|temporary)\"}\n }\n}"

I try to solve the problem by fixing manually the credential but the script seems to modify (it changes my persisted credential by a temporary credential) it and i can't find where it do it (and also i don't know how to see the principal of the credential to understand maybe why it's not working).

I also want to specify that in 2.6 ambari's log are : user : raj_ops password : raj_ops I think i configure my ambari.props correctly :

CLUSTER_NAME=Sandbox AMBARI_ADMIN_USER=raj_ops AMBARI_ADMIN_PASSWORD=raj_ops AMBARI_HOST=localhost KDC_HOST=localhost REALM=EXAMPLE.COM KERBEROS_CLIENTS=localhost

I have no more ideas on how to solve the problem please help me ^^

1 ACCEPTED SOLUTION

New Contributor

Thanks i finally resolve the problem a long time ago, i don't remember exactly what was the solution but i think i had not add kdc credentials.

I think i follow this tutorial to resolve the problem :

https://community.hortonworks.com/articles/42927/adding-kdc-administrator-credentials-to-the-ambari....

View solution in original post

2 REPLIES 2

Expert Contributor
@Sofian Benabdelhak

Please check the answer here, It may help.

https://community.hortonworks.com/questions/114024/invalid-kdc-administrator-credentials.html?childT...

Also use that API and set credentials to persisted.

New Contributor

Thanks i finally resolve the problem a long time ago, i don't remember exactly what was the solution but i think i had not add kdc credentials.

I think i follow this tutorial to resolve the problem :

https://community.hortonworks.com/articles/42927/adding-kdc-administrator-credentials-to-the-ambari....

; ;