Member since
04-16-2019
9
Posts
0
Kudos Received
0
Solutions
06-12-2019
07:27 PM
Thanks. Solved this by adding temporary credential store.
... View more
06-12-2019
01:23 AM
Ok. Thanks. I will try this and post back. I still don't understand why 2 POST calls were successful without doing this, then fails on this PUT call.
... View more
06-11-2019
07:52 PM
Our cluster is protected via Kerberos but I can't understand why I would need to perform this step for this particular command when I was able to add a host and add components via POST apis without an issue, using Basic Auth.
... View more
06-11-2019
07:48 PM
I am trying to install components using a python script. Based loosely upon the community example I found here: https://github.com/datagulp/hdp_utilities/blob/master/autoScale.sh At the step where I get a list of components from another compute node, then try to replicate, I can add each component onto a node with a POST successfully. I can see the components being added. But when I try to then do a PUT to set the state of each one to INSTALLED, it fails. curl -u user1 -i -H "X-Requested-By:ambari" -X PUT -d '{"HostRoles": {"state":"INSTALLED"}}' http://my-ambari-host:8080/api/v1/clusters/my-cluster/hosts/my-host/host_components/ATLAS_CLIENT { "status" : 400, "message" : "java.lang.IllegalArgumentException: Missing 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 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}" }
... View more
Labels:
- Labels:
-
Apache Ambari