Hi Fay…
This can happen if the Kerberos service config data becomes corrupted. If you
do the following API call, you do get any data back?
GET /api/v1/clusters/MyCluster/configurations?type=kerberos-env
In my cluster I don’t have Kerberos installed, so I get the following response:
{
"href" :
"http://c6501:8080/api/v1/clusters/c1/configurations?type=kerberos-env",
"items" : [ ]
}
If you get this, this is the issue and you will need to recreate the
kerberos-env config manually. If you get a set of configuration versions back,
then we need to figure out what property of the current version is making the
UI upset.
A better way to get the configs is to use the configs.sh script on the Ambari
server host:
/var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port
8080 get localhost c1 kerberos-env
If you get the following error, the kerberos-env config was lost somehow:
[ERROR] "kerberos-env" not found in server response.
Else if configuration data comes back, we can figure out what might be the
offending property or properties.
Rob
From: Fay Wang <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>, Fay Wang
<[email protected]<mailto:[email protected]>>
Date: Tuesday, February 23, 2016 at 1:58 AM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>, Fay Wang
<[email protected]<mailto:[email protected]>>
Subject: Re: another Kerberos issue
Kerberization is successful. All services are up and service checks pass.
Ambari version is 2.0.
(1) POST http://localhost:8080/api/v1/clusters/MyCluster/services/KERBEROS
(2) POST
http://localhost:8080/api/v1/clusters/MyCluster/services/KERBEROS/components/KERBEROS_CLIENT
(3) PUT -d @/tmp/kerberos_config.json
http://localhost:8080/api/v1/clusters/MyCluster
(4) POST -d '{"host_components" : [{"HostRoles" :
{"component_name":"KERBEROS_CLIENT"}}]}'
http://localhost:8080/api/v1/clusters/MyCluster/hosts?Hosts/host_name=$host
(5) PUT -d '{"ServiceInfo": {"state" : "INSTALLED"}}'
http://localhost:8080/api/v1/clusters/MyCluster/services/KERBEROS
(6) POST -d @/tmp/kerberos_descriptor.json
http://localhost:8080/api/v1/clusters/MyCluster/artifacts/kerberos_descriptor
(7) PUT -d @/tmp/kerberos_enable.json
http://localhost:8080/api/v1/clusters/MyCluster
Not sure why the page (Ambari UI -> Admin -> Kerberos) is not loaded. Please
help...
-f
On Monday, February 22, 2016 10:26 PM, Fay Wang
<[email protected]<mailto:[email protected]>> wrote:
Hi,
Another issue with automated kerberos via REST API is that after
kerberization, on Ambari UI -> Admin -> Kerberos -> The page does not load. It
must be something to do with the value not been set/ or not been retrieved
correctly. There is nothing special in ambari-server.log. Any help is highly
appreciated....
-fay