ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chandan Kumar <cku...@nextpathway.com>
Subject Re: Issue while creating kerbrozied cluster using ambari blueprint
Date Wed, 27 Jul 2016 21:08:37 GMT
Hello Amruta,

Thanks for the response. I tried adding those two parameters as 
suggested. But I am still getting the same error. Here I am pasting the 
whole curl command for your reference.


curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H 
"X-Requested-By: ambari" -H "Cache-Control: no-cache" -H "Postman-Token: 
7f7247be-6343-93c6-6a3a-fc476064f646" -d '{
   "configurations" : [
     {
    "kerberos-env": {
         "properties_attributes" : { },
         "properties" : {
           "realm" : "TEST.NEXTPATHWAY.COM",
           "kdc_type" : "mit-kdc",
           "kdc_host" : "10.120.8.109",
           "admin_server_host" : "10.120.8.109",
     "create_attributes_template" : "",
     "container_dn" : ""
         }
       }
     },
     {
       "krb5-conf": {
         "properties_attributes" : { },
         "properties" : {
           "domains" : "TEST.NEXTPATHWAY.COM",
           "manage_krb5_conf" : "true"
         }
       }
     }
   ],
   "host_groups" : [
     {
       "name" : "host_group_1",
       "configurations" : [ ],

       "components" : [
         {
           "name" : "KERBEROS_CLIENT"
         },
         {
           "name" : "ZOOKEEPER_CLIENT"
         },
         {
           "name" : "ZOOKEEPER_SERVER"
         },
         {
           "name" : "NAMENODE"
         },
         {
           "name" : "HDFS_CLIENT"
         },
         {
           "name" : "DATANODE"
         }
       ],
       "cardinality" : "1"
     },
     {
       "name" : "host_group_2",
       "configurations" : [ ],
       "components" : [
         {
           "name" : "ZOOKEEPER_SERVER"
         },
         {
           "name" : "KERBEROS_CLIENT"
         },
         {
           "name" : "SECONDARY_NAMENODE"
         },
         {
           "name" : "DATANODE"
         }
       ],
       "cardinality" : "1"
     },
     {
       "name" : "host_group_3",

       "configurations" : [ ],
       "components" : [
         {
           "name" : "ZOOKEEPER_CLIENT"
         },
         {
           "name" : "ZOOKEEPER_SERVER"
         },
         {
           "name" : "KERBEROS_CLIENT"
         },
         {
           "name" : "HDFS_CLIENT"
         },
         {
           "name" : "DATANODE"
         }
       ],
       "cardinality" : "1"
     }
   ],
   "Blueprints" : {
     "stack_name" : "HDP",
     "stack_version" : "2.3",
     "security" : {
          "type" : "KERBEROS"
     }
   }
}
' "http://10.120.8.112:8080/api/v1/blueprints/cluster_blueprint"


-----------------------------------------

Output:


{
   "status" : 400,
   "message" : "Blueprint configuration validation failed: Missing 
required properties.  Specify a value for these properties in the 
blueprint configuration. {host_group_2={kerberos-env=[encryption_types, 
ldap_url]}, host_group_1={kerberos-env=[encryption_types, ldap_url]}, 
host_group_3={kerberos-env=[encryption_types, ldap_url]}}"
}



On 2016-07-20 06:56 PM, Amruta Borkar wrote:
> Hello,
>
> You will also need to add following two properties:
>
> “create_attributes_template” : “”,
>
> “container_dn” : “”
>
> It is ok to keep the values blank for these two.
> EX:
>
> "kerberos-env": {
>         "properties_attributes" : { },
>         "properties" : {
>           "realm" : "TEST.COM <http://TEST.COM>",
>           "kdc_type" : "mit-kdc",
>           "kdc_host" : "10.120.8.109",
>           "admin_server_host" : "10.120.8.109",
>     "create_attributes_template" : "",
>     "container_dn" : ""
>
>         }
>
> Regards,
> Amruta
>
> On Wed, Jul 20, 2016 at 1:50 PM, Chandan Kumar <ckumar@nextpathway.com 
> <mailto:ckumar@nextpathway.com>> wrote:
>
>     Hello All,
>
>     I am trying to install kerberozied cluster using ambari
>     blueprints. I am following below document
>
>     https://cwiki.apache.org/confluence/display/AMBARI/Blueprints.
>
>     I modified the example given at
>     https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-BlueprintExample:ProvisioningMulti-NodeHDP2.3ClustertouseKERBEROS
>
>
>     However, when I post this blueprint I am getting below return.
>
>     http: 400
>     {
>       "status" : 400,
>       "message" : "Blueprint configuration validation failed: Missing
>     required properties.  Specify a value for these properties in the
>     blueprint configuration.
>     {host_group_2={kerberos-env=[encryption_types, ldap_url,
>     container_dn]}, host_group_1={kerberos-env=[encryption_types,
>     ldap_url, container_dn]},
>     host_group_3={kerberos-env=[encryption_types, ldap_url,
>     container_dn]}}"
>     }
>
>
>     Below is the blueprint json.
>
>
>     {
>       "configurations" : [
>         {
>        "kerberos-env": {
>             "properties_attributes" : { },
>             "properties" : {
>               "realm" : "TEST.COM <http://TEST.COM>",
>               "kdc_type" : "mit-kdc",
>               "kdc_host" : "10.120.8.109",
>               "admin_server_host" : "10.120.8.109"
>             }
>           }
>         },
>         {
>           "krb5-conf": {
>             "properties_attributes" : { },
>             "properties" : {
>               "domains" : "TEST.COM <http://TEST.COM>",
>               "manage_krb5_conf" : "true"
>             }
>           }
>         }
>       ],
>       "host_groups" : [
>         {
>           "name" : "host_group_1",
>           "configurations" : [ ],
>
>           "components" : [
>             {
>               "name" : "KERBEROS_CLIENT"
>             },
>             {
>               "name" : "ZOOKEEPER_CLIENT"
>             },
>             {
>               "name" : "ZOOKEEPER_SERVER"
>             },
>             {
>               "name" : "NAMENODE"
>             },
>             {
>               "name" : "HDFS_CLIENT"
>             },
>             {
>               "name" : "DATANODE"
>             }
>           ],
>           "cardinality" : "1"
>         },
>         {
>           "name" : "host_group_2",
>           "configurations" : [ ],
>           "components" : [
>             {
>               "name" : "ZOOKEEPER_SERVER"
>             },
>             {
>               "name" : "KERBEROS_CLIENT"
>             },
>             {
>               "name" : "SECONDARY_NAMENODE"
>             },
>             {
>               "name" : "DATANODE"
>             }
>           ],
>           "cardinality" : "1"
>         },
>         {
>           "name" : "host_group_3",
>
>           "configurations" : [ ],
>           "components" : [
>             {
>               "name" : "ZOOKEEPER_CLIENT"
>             },
>             {
>               "name" : "ZOOKEEPER_SERVER"
>             },
>             {
>               "name" : "KERBEROS_CLIENT"
>             },
>             {
>               "name" : "HDFS_CLIENT"
>             },
>             {
>               "name" : "DATANODE"
>             }
>           ],
>           "cardinality" : "1"
>         }
>       ],
>       "Blueprints" : {
>         "stack_name" : "HDP",
>         "stack_version" : "2.3",
>         "security" : {
>              "type" : "KERBEROS"
>         }
>       }
>     }
>
>


Mime
View raw message