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 3B72F200B31 for ; Tue, 24 May 2016 17:02:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3A684160A35; Tue, 24 May 2016 15:02:53 +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 3908816098E for ; Tue, 24 May 2016 17:02:52 +0200 (CEST) Received: (qmail 33716 invoked by uid 500); 24 May 2016 15:02:51 -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 33706 invoked by uid 99); 24 May 2016 15:02:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2016 15:02:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F1CEDC0608 for ; Tue, 24 May 2016 15:02:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=phdata-io.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tefHFZE8851M for ; Tue, 24 May 2016 15:02:48 +0000 (UTC) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id BA6225F297 for ; Tue, 24 May 2016 15:02:47 +0000 (UTC) Received: by mail-it0-f45.google.com with SMTP id z123so12278442itg.0 for ; Tue, 24 May 2016 08:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phdata-io.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=R09n19V/kcJpCticcBNCVSBxhNvcfTXLTUffJRaEA1E=; b=j9P2Rn3zAzJN/bgDVv2vSnZLKGMM4uql6Y4QYB2Eh8tAb0JxTXazuI29XD6qFe9oPC 6hRFDZXbthkclA1c7omXWpJpFUFWV1nxOIeWJ7Tb3F69EweMa2jB2/XyycB7sZngFw14 9J+K1xSz8kkAlZ9ns6njf8I1ziJHv2YfokNC2HCUMXHNw75miOwPAOzdm8NNcw6lmV0u 5O1kFa97cnStFQaMaA3dYyf4+ibooYwtdY9gXvMxEGSEf0J3vFkTAxSdhqco3foi0WSG jvk2G6INHaPWzhYXUuYfieRWBrwu5txwK6QEDibTWrUw0HMBqn5XQ2cbFRm6W+iaXRem f6Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=R09n19V/kcJpCticcBNCVSBxhNvcfTXLTUffJRaEA1E=; b=Ae0Wav37SXcZoIRzjnq4gy4ynCA3WURGaT6gV33IqDRhxe3VrGqN8ol6AYV9/Anaqz QvIfTUlmMWJ7tZGbBDwKqxGZHdJl82oUoL/FwimuD9lQB/LAh16lFivFM84/6KpzCvcO fSwyIvmJuWSlvjQRH3eyBV/OwNzBoaEBLN4YgHGmQmdsgN2ZCtwgOQY9OA3eZMI5Oujg rkhLh63HO9sZFLLn/0BuGBJQjVU2j0/SLRGsGOTwRK4JPkMRG9IYovuhK0U7HumgQkTj sG5DbnOPzMqqfZV7n/g85Eod1dyGkDplEpg4y205bbdkfhrF9jAeftittS1M7Kna6NRm 15pg== X-Gm-Message-State: AOPr4FVx1qmz2NiRSdIYFE3eCB6R8he94YYPMM4WVGTbLr4HGyUuz4C/NJfD6gyaiXtj9A== X-Received: by 10.36.51.15 with SMTP id k15mr18050755itk.41.1464102160532; Tue, 24 May 2016 08:02:40 -0700 (PDT) Received: from ?IPv6:2601:449:8302:27c0:a0c5:3084:4229:33d0? ([2601:449:8302:27c0:a0c5:3084:4229:33d0]) by smtp.gmail.com with ESMTPSA id wh5sm5518373igb.19.2016.05.24.08.02.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 May 2016 08:02:40 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_76DB9998-4ED1-4152-8087-E7852707AFA4" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Issues when using blueprint From: Andrew Stadtler In-Reply-To: Date: Tue, 24 May 2016 10:02:41 -0500 Cc: Alejandro Fernandez Message-Id: <7CA93417-A54E-45F3-9CCC-AAB0B607BF05@phdata.io> References: To: user@ambari.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Tue, 24 May 2016 15:02:53 -0000 --Apple-Mail=_76DB9998-4ED1-4152-8087-E7852707AFA4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I don=E2=80=99t think HDP 2.5 is publicly available yet. stackVersion=3D2.5 > On May 24, 2016, at 2:49 AM, Jeff Zhang wrote: >=20 > Thanks, Alejandro, but after I use HDP as repoId, it still fails. (Do = I use wrong stackVersion/osType ? I don't find valid = stackVersoin/osType/repoId list in = https://cwiki.apache.org/confluence/display/AMBARI/Blueprints = ) >=20 >=20 >=20 > [root@jzhang-test3-1 ~]# curl -X PUT -u admin:admin -d @repo.json -H = 'X-Requested-By: ambari' = http://jzhang-test3-1.openstacklocal:8080/api/v1/stacks/HDP/versions/2.5/o= perating_systems/centos6/repositories/HDP = > { > "status" : 404, > "message" : = "org.apache.ambari.server.controller.spi.NoSuchResourceException: The = specified resource doesn't exist: Stack data, stackName=3DHDP, = stackVersion=3D2.5, osType=3Dcentos6, repoId=3DHDP"=20 >=20 > On Sat, May 21, 2016 at 2:22 AM, Alejandro Fernandez = > wrote: > Hi Jeff, >=20 > Valid repo names are "HDP" or "HDP-UTILS" instead of "hw_repo". >=20 > Thanks, > Alejandro >=20 > From: Jeff Zhang > > Reply-To: "user@ambari.apache.org " = > > Date: Thursday, May 19, 2016 at 11:23 PM > To: "user@ambari.apache.org " = > > Subject: Issues when using blueprint >=20 > I try to use blueprints, but fails with 2 problems.=20 >=20 > One is when setup repo, another is when registering blueprint. = Here=E2=80=99s the errors I get >=20 >=20 > Setup repo. >=20 > curl -X PUT -u admin:admin -d @repo.json -H 'X-Requested-By: ambari' = http://jzhang-test3-1.openstacklocal:8080/api/v1/stacks/HDP/versions/2.5/o= perating_systems/centos6/repositories/hw_repo = >=20 > Error I get: =20 >=20 > { >=20 > "status" : 404, >=20 > "message" : = "org.apache.ambari.server.controller.spi.NoSuchResourceException: The = specified resource doesn't exist: Stack data, stackName=3DHDP, = stackVersion=3D2.5, osType=3Dcentos6, repoId=3Dhw_repo=E2=80=9D >=20 > } >=20 >=20 > Register blueprint >=20 >=20 > curl -X POST -u admin:admin -d @dev_cluster.json -H 'X-Requested-By: = ambari' = http://jzhang-test3-1.openstacklocal:8080/api/v1/blueprints/dev_cluster = >=20 > Error I get >=20 > { >=20 > "status" : 400, >=20 > "message" : "Blueprint configuration validation failed: Missing = required properties. Specify a value for these properties in the = blueprint configuration. {host_group_1=3D{kerberos-env=3D[kdc_type, = kdc_hosts, encryption_types, realm, ldap_url, container_dn]}}=E2=80=9D >=20 > } >=20 >=20 >=20 > Attach are the request body file for these 2 cases. >=20 >=20 > --=20 > Best Regards >=20 > Jeff Zhang >=20 >=20 >=20 > --=20 > Best Regards >=20 > Jeff Zhang --Apple-Mail=_76DB9998-4ED1-4152-8087-E7852707AFA4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I don=E2=80=99t think HDP 2.5 is publicly available yet.

stackVersion=3D2.5

On May 24, 2016, at 2:49 AM, Jeff Zhang <zjffdu@gmail.com> = wrote:

Thanks, Alejandro, but after I use HDP = as repoId, it still fails.  (Do I use wrong stackVersion/osType ? I = don't find valid stackVersoin/osType/repoId list in https://cwiki.apache.org/confluence/display/AMBARI/Blueprints)



{
  "status" : 404,
  "message" : = "org.apache.ambari.server.controller.spi.NoSuchResourceException: The = specified resource doesn't exist: Stack data, stackName=3DHDP, = stackVersion=3D2.5, osType=3Dcentos6, = repoId=3DHDP" 

On Sat, May 21, 2016 at 2:22 AM, = Alejandro Fernandez <afernandez@hortonworks.com> wrote:
Hi Jeff,

Valid repo names are "HDP" or "HDP-UTILS" instead of = "hw_repo".

Thanks,
Alejandro

From: Jeff Zhang = <zjffdu@gmail.com>
Reply-To: "user@ambari.apache.org" <user@ambari.apache.org>
Date: Thursday, May = 19, 2016 at 11:23 PM
To: "user@ambari.apache.org" <user@ambari.apache.org>
Subject: Issues when = using blueprint

I try to use = blueprints,  but fails with 2 problems. 

One is when setup repo, another is when = registering blueprint. Here=E2=80=99s the errors I get


Setup = repo.

curl -X PUT  -u = admin:admin -d @repo.json -H 'X-Requested-By: ambari' http://jzhang-test3-1.openstacklocal:8080/api/v1/stacks/HDP/ver= sions/2.5/operating_systems/centos6/repositories/hw_repo=


Error I get:  

{

  "status" : 404,

  "message" : = "org.apache.ambari.server.controller.spi.NoSuchResourceException: The = specified resource doesn't exist: Stack data, stackName=3DHDP, = stackVersion=3D2.5, osType=3Dcentos6, repoId=3Dhw_repo=E2=80=9D

=

}


Register = blueprint


curl -X POST -u admin:admin -d @dev_cluster.json -H = 'X-Requested-By: ambari' http://jzhang-test3-1.openstacklocal:8080/api/v1/blueprints/dev= _cluster


Error I get

{

  "status" : 400,

  "message" : "Blueprint configuration validation = failed: Missing required properties.  Specify a value for these = properties in the blueprint configuration. = {host_group_1=3D{kerberos-env=3D[kdc_type, kdc_hosts, encryption_types, = realm, ldap_url, container_dn]}}=E2=80=9D

}


Attach are = the request body file for these 2 cases.


--
Best Regards

Jeff Zhang



--
Best Regards

Jeff = Zhang

= --Apple-Mail=_76DB9998-4ED1-4152-8087-E7852707AFA4--