Hi,    Is there a way to programmatically enable kerberos which is equivalent 
to the option of "Manage kerberos principals and keytabs manually" via Ambari 
UI?
I set kdc_type as "none" in my json file, 

 "Clusters": {
      "desired_config": {
        "type": "kerberos-env",
        "tag": "version2",
        "properties": {
          "kdc_type": "none",
          "manage_identities": "true"

but got the error when executing the curl command:

curl -k -H "X-Requested-By:ambari" -u admin:admin -i -X PUT -d 
@/tmp/kerberos_enable.json http://localhost:8080/api/v1/clusters/MyCluster
HTTP/1.1 400 Bad Request
Strict-Transport-Security: max-age=31536000
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: admin
Set-Cookie: AMBARISESSIONID=12qbtr9rz5f3514x4farf0ip2b;Path=/;Secure;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 104
Server: Jetty(8.1.17.v20150415)

{
  "status" : 400,
  "message" : "java.lang.IllegalArgumentException: Unexpected kdcType value: 
NONE"
Any help is highly appreciated...
-fay

Reply via email to