ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Levas <rle...@hortonworks.com>
Subject Re: how to automate kerberos using REST API
Date Thu, 07 Jan 2016 19:47:57 GMT
Hi Fay…

I think that data is outdated… You should follow the instructions at https://cwiki.apache.org/confluence/display/AMBARI/Automated+Kerberizaton#AutomatedKerberizaton-TheRESTAPI

Rob


From: Fay Wang <faywang300@yahoo.com<mailto:faywang300@yahoo.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>,
Fay Wang <faywang300@yahoo.com<mailto:faywang300@yahoo.com>>
Date: Thursday, January 7, 2016 at 2:42 PM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: how to automate kerberos using REST API

Hi,
     I need to automate kerberos on my cluster using REST API. Following the document attached
in AMBARI-7204 to register and kerberize the cluster, I got the error below:

(1) curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d /tmp/kerberos_plan.json http://localhost:8081/api/v1/kerberos/MyKerberos

(2) curl -u admin:admin -H 'X-Requested-By: ambari' -X PUT -d {"RequestInfo":{"context":"Enable
kerberos"},"Body":{"kerberos-enabled":"true", "kerberos-plan":"EHaasKerberos"}}' http://localhost:8081/api/v1/clusters/MyCluster

{
  "status" : 400,
  "message" : "org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties
[kerberos-enabled, kerberos-plan] specified in the request or predicate are not supported
for the resource type Cluster."
}

Any help is highly appreciated!

-fay





<http://localhost:8081/api/v1/kerberos/MyKerberos>



Mime
View raw message