Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AA773200B58 for ; Wed, 27 Jul 2016 23:08:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A9327160A90; Wed, 27 Jul 2016 21:08:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 601D2160A6F for ; Wed, 27 Jul 2016 23:08:49 +0200 (CEST) Received: (qmail 40826 invoked by uid 500); 27 Jul 2016 21:08:48 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 40816 invoked by uid 99); 27 Jul 2016 21:08:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 21:08:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 08F5ACDB85 for ; Wed, 27 Jul 2016 21:08:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.978 X-Spam-Level: * X-Spam-Status: No, score=1.978 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=nextpathway.onmicrosoft.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id d21tNsp48PV7 for ; Wed, 27 Jul 2016 21:08:45 +0000 (UTC) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0080.outbound.protection.outlook.com [104.47.33.80]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 077D65FBF9 for ; Wed, 27 Jul 2016 21:08:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nextpathway.onmicrosoft.com; s=selector1-nextpathway-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qCpAGUi0TOOVTsw9H4OSAwuwfn8d1K23v8ekFkavAHw=; b=L7wGCuzoFQKE6mJQW6BAv625SE4YpX9JVTfrP35SINlbsgqcRlYxasljAOHtcHsDalyEbzTSNVHjMIy/LML01rPvdd9Pqd2/eQw4NCAVuS43gHB7ESh2AfHgs6Y2FBB3vQ92zwbvLPByxLByVhzAmwnLqjsJAu2M8lhPh7Az2E8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ckumar@nextpathway.com; Received: from [10.120.3.193] (207.107.138.122) by DM5PR06MB2826.namprd06.prod.outlook.com (10.175.108.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Wed, 27 Jul 2016 21:08:40 +0000 Subject: Re: Issue while creating kerbrozied cluster using ambari blueprint To: References: From: Chandan Kumar Message-ID: <207d82b0-11c7-03ca-460a-c60942ebf2e3@nextpathway.com> Date: Wed, 27 Jul 2016 17:08:37 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------103FD7C4CA965BD3ABAE214B" X-Originating-IP: [207.107.138.122] X-ClientProxiedBy: SN1PR08CA0024.namprd08.prod.outlook.com (10.161.221.34) To DM5PR06MB2826.namprd06.prod.outlook.com (10.175.108.8) X-MS-Office365-Filtering-Correlation-Id: b20d16d0-e109-4e3a-19e2-08d3b6622f9a X-Microsoft-Exchange-Diagnostics: 1;DM5PR06MB2826;2:asu6Ux/h8s2Qd8nQtAsZwKGul0/KSCn0VLBFmG6HB/G86SEvvLAwXtiSy5RdVpo1O2qicDQpJ1qLuGzHshzZpJW72P0WvPt3OCRFM8OkKZ5yJs5N5JY02chQtDeOT/z5CZXhWYwjZrw83Ro7pCbYWlB0kRaWYU+4nwQd/dT/HB1lE5TsPVtqw9S6rmhM2kkE;3:CxCPxSTFWNVmX4RhmZYTNxsrTfuVCRX1QSfcvM8PFclqDN2KeuM1/aCOb0kcF3W/hNYhMGjuSZGot/UTvSLg77dv57FBhqMIVunX1+ZNuRP4GGKdQff+iX3KTzko1y7u;25:6IY5QhiaYFWwrRe+2TjfhGW3peO+Q9pFU+73V4g+nC1xgklb8+HkGKUb77FXlSrKZuAVx40C17t88ALIbMzwhvYnkVFeslYM6x9SjYzr8yeepmkI75vxE+KEqC3Vqq/VzGG14GLvdMml0YdiAOoSiKkqKISIhT0BSPC9mcNZ44VpL7CjsM0gexnfu9YlZsb4iJYePAA6ACW7Xln8JQeLpYuScTOUiGD9kb/YWGIddM9m6bGAw/yJ2kkdC1mAZ2kf2Z2bad3VAUIqU9fS6PFRIJUfDX5/Bzef3tybcuqzFm70265UCM/yC1sGWazbvfsBLUFVUKIPSRPDka3AT6juo9KSFXZCKYwiaXL0nMlL9kNd5KA1vSBrrJjgkAuj5LHaAB8d75IqPVTUdaoB+j322n/iVgEA6SAT+RDiQ+Yza/A=;31:KLZvNc8hT3ZsXWMa4LWTejoKJeM7/MlgTj3n5I1U0dPQk+la87rkESbhhXsTRiyf503Z2gweY4YI5SyKe0i/TXurpR99ldBA/IpcKCtxm3dHflQXk4LtcnNzmMMae6o4QvgMV4BTcW8adjkG7G744nvuj/dNNBQOLtDk2IKjbQ3ujTQV+SjWnWsyLHy4OiLXXagDYzKFdmj7WzOiAIBn1g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM5PR06MB2826; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(190461294614860)(67729699691378)(183022231695245); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:DM5PR06MB2826;BCL:0;PCL:0;RULEID:;SRVR:DM5PR06MB2826; X-Microsoft-Exchange-Diagnostics: 1;DM5PR06MB2826;4:rqnY73R9kMCHTsERAAn7ZXuprpwFtZRUuhR0wAbCTfOd6HkP2Fq2eoga5yAtgbeJNHKdsN0883XQGQBwL3eCZzbAUeM9s9JQkIF/alih7Gg2U9LDOvx2JuxsrBFZw3OwKUAq/pKy8ZeKT6KZdypssuuN6pMoBrEG5eYu97K7c8+RD3LL+mHcp1YL2bSb997StCaNiQG14HY/O5ZP4vLxMjiaouLOD8wNr73ewz5G42801fUyHvtNHMKGrFWnQPpCsIpYHsqsJcl9CCH0lxEYheJSRxHzSpbpElaYUfBeXK6yvHOW0tquwKDzUCLemBjl7AHS4dinqOVEWsHdq8iJyrwjM/ZkuN/qKaQ5HovpdpaEJNDmzYpt4ZhZ3DZJ67Ef4CTbVOLqtyzlE4Nomrdyi2l32I/wPCcQJC+ZDoKsBfncfkh5jYB/Xyof6RnQJvshxClq6avGC0O+MkXeIL2tWgifByjvUkWQ3qKo0BUPKCsL0jlH80k3GEkltKADj7+K5GzP5sXqrFnsaPbu09qxVQ== X-Forefront-PRVS: 0016DEFF96 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6019001)(6049001)(7916002)(189002)(377454003)(53754006)(377424004)(199003)(24454002)(51914003)(83506001)(77096005)(84326002)(66066001)(2950100001)(65956001)(110136002)(14971765001)(101416001)(107886002)(54356999)(76176999)(65806001)(450100001)(15975445007)(50986999)(64126003)(7906003)(31696002)(31430400001)(189998001)(3846002)(68736007)(81166006)(6116002)(2906002)(2351001)(512874002)(86362001)(81156014)(106356001)(97736004)(42186005)(8676002)(31686004)(19617315012)(33646002)(4001350100001)(105586002)(7846002)(36756003)(16601075003)(92566002)(16236675004)(19580395003)(586003)(19580405001)(7736002)(65826006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR06MB2826;H:[10.120.3.193];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: nextpathway.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR06MB2826;23:P0mr2Hc4q5NhE5ag1EhGtRzexW65H4i6yswPIf3i9?= =?us-ascii?Q?bZ44DIUwJX8lIYbb9rzOrxTlc1GVd/TxcKPazW+cZBTVCX+vrhV/7IeCbJW+?= =?us-ascii?Q?AxypljhTzVI+rHZEpBme27DiaqsSCp7ZidnpgXthj/gfxTQONSUuEnKu+jpz?= =?us-ascii?Q?xySG5Z3DbUPfAyas7InhLFNCaNGGD04spgs4UUpLH2Yu9/dW7EvULW0ZewkO?= =?us-ascii?Q?xXmbjWu8f813yaCcr9SDfK9cAN5np1U4oDh4EjVJqNbmR6T6kjlCIaql2Hur?= =?us-ascii?Q?KuEPmZyn2BzafC3TyE5togdMTbLb3UCRZ1eDXjM1J+mYvS3i66Yf68lZWpp8?= =?us-ascii?Q?0DfUVluAJVY77ntqWcPURofZaQOoRefbsPKgzuWc/6VTwB6c7c/EMOcrgUcb?= =?us-ascii?Q?gd5Zh+tHALaGxwTK+QRC/5h3Z/XD3G0J+hp9vGGExPBgUeiv0hS+iquuNCgx?= =?us-ascii?Q?wcE3PZsWS7OdwJjZYsnu4ITNPvotR0/7uC+ZYcsMHOgZMCGKb6r+FqpyMazS?= =?us-ascii?Q?uVfbzUXXMb8FW8m6MgITwl1IpFWO3bnT/rxL2eAKipN7PPc7Gsruz2K7hYgC?= =?us-ascii?Q?gmNv3+1PlM7RtpizYYm8pz8/NQvZ/w4Di/3DjAWZqMlpdaQL4OCxOQyp8SbA?= =?us-ascii?Q?IUuRR/fLmey3Qwfbu9N67VHkyndStv1BRAJuP3X4KOd/3MbhRZAuTZ7Yde+Z?= =?us-ascii?Q?HYWCwqsq5k+2fh/0P59lIn6eg42D10uFIiKNVT2im6fc2SvKa73UnFBLu0Sv?= =?us-ascii?Q?6fQet2ZN/TcOZ+lzWtxH1HQUSmmXSUEt1fyP78MCJzoK26asX/8rlGCuZK00?= =?us-ascii?Q?MoNCYZ6E8BwlAAbSNYyqbq0tRQ9f6PghIRLosSiiiMXQIxNL+Gk1Aqx203B9?= =?us-ascii?Q?D6pmTreo7BhuqynqECvq7nBeWdiXHlarm1+XHLmemhJouDpQ7zCkxf8f/vWA?= =?us-ascii?Q?CeAooNCcqUOsyE9EB7sNfGDcvAD7r6yN3fP1wBaZVfyF7ph1Dj5SV16pTYyq?= =?us-ascii?Q?CXN5C8uqwYoDBizdg4gIFJUpT6gNpNpici5uuDM4nvtzb/rE57qz1EKhEYGG?= =?us-ascii?Q?yaQXMiGeklCdXZ374v7JAjH8KlQgHjsj92zhM9pfEIMzWuQfHXRYsJDSEV7m?= =?us-ascii?Q?hWw+CMgFVxf+fe6bEdfbsCvtJGPBxL+qL7iN9ezNRx70WsRjGPG8Eb7XoUEE?= =?us-ascii?Q?+u4Lue/1tZSgw3UCy3FjEjxUDLXcsEgs+i4eov7ZgV+16YtBYDMNWwcTTsJX?= =?us-ascii?Q?DDcP7E0+8xaHKu55xebMQCeBCSgHkv93G2zm2WbGcH0PQx06ssm35td41zLo?= =?us-ascii?Q?1pXC1KhyuHYjK69FWGybR8uKlxeDhZKRIB1iI9rdyawnBWqwpP644I+7JJz1?= =?us-ascii?Q?TEh0vTGIY3a3c0Fq6v03vm30qW0zrHmqp2p8/LvP6BZnXoNWQjhsxmMWWdjb?= =?us-ascii?Q?EFSZ/dF4BKjO2EQeRWFwGcVNXABKfn1OtAjqA6TsqvJQm53D5nM+yXmAlfMu?= =?us-ascii?Q?A2xg/X2h/J/Mw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM5PR06MB2826;6:lfx+sau/cZu2e8aUA9YOh07rkNlQsU/EXMT6UL2qXtfguSjZGma5cK+lPkRPNwlxkU9Ij41R8JsYie51GWYTRTRdHdTjshbuA2KG8XumicH0jMfzXYPQqZbWabOzlj/wMHED9Ff2RR6L9LZ0NqjVw0Ys0OpFqYFEV2AaXF7gOlYOShmhu6k6VkyIwCrNsRqJYXXrzvz48sFF17iPXCBAmDPCIETl2eDon8OsJQATSpLd+Ba/FMAaGJ3aQcaJBqM7Lq/f8BRdeZis5pbNqb+4aVClT/bIitTJkZsAylUgvv8=;5:qPnWNml3AsVMMU63Hl/CK8EVAjtdHW3l7mf+Y2xZ30PL7Hy0iiVWBqSocLS7pHPH2RIApw5kjR1dnIqQ52DBZ+JsazYsbMfGowI6yKgdDdebJaV9qq592pFu4wnZet0+JVu3PKakzgGMhs9yBB0EHQ==;24:U2a/5scKXSUdgeF5il9oD/EkyspmXOajjPfeNgpvZYpUf6aqTvBd/0uUHe6VfKKQg/1UvCb1FwDQ39xMUKMIWIDY1kXwNu9HjbKCYAn6gjc=;7:/iYKtxr3o6YJ3vwCWk5y2UfVBEhqkP150bxpIhp4DLreFu1ces8kERTrwQNIBFeGKmKt+xsdnIUvME4Ie/pXiXf7CRvhq0BzpT+SPdcaX8Z35upqRP7bpkCMpuNeK0XmSrmVFt8Il+gTrf4DLlGldgRTwY0KT8eXcfv/gcxEOp9qvN7CKpccC7Zw6ZCB9NkgCGyipFS/JSE6feRwxF3tD8m6gLdgM979wz/jk4+k7/uLfe7vQEarhOGW90wENiNW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nextpathway.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2016 21:08:40.7257 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR06MB2826 archived-at: Wed, 27 Jul 2016 21:08:50 -0000 --------------103FD7C4CA965BD3ABAE214B Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit 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 ", > "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 > 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 ", > "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 ", > "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" > } > } > } > > --------------103FD7C4CA965BD3ABAE214B Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit

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",
          "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> 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",
          "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",
          "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"
    }
  }
}



--------------103FD7C4CA965BD3ABAE214B--