You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Jeff Zhang <zj...@gmail.com> on 2016/05/20 06:23:00 UTC
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’s 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/versions/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=HDP,
stackVersion=2.5, osType=centos6, repoId=hw_repo”
}
*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={kerberos-env=[kdc_type, kdc_hosts,
encryption_types, realm, ldap_url, container_dn]}}”
}
Attach are the request body file for these 2 cases.
--
Best Regards
Jeff Zhang
Re: Issues when using blueprint
Posted by Jaimin Jetly <ja...@hortonworks.com>.
Hi Jeff,
Please navigate through REST APIs to see the valid resources as per your configured stack definition
Following API will list all OS defined for a stack version:
http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.4/operating_systems<http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.5/operating_systems>
Then pick the OS you are interested to see details of:
http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat6/
Now select the repository that you are interested to look:
1. http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat6/repositories/HDP-2.4
2. http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat6/repositories/HDP-UTILS-1.1.0.20
you can look at similar stack APIs for 2.5 version resource as well.
Hope this helps!
-- Thanks
Jaimin
________________________________
From: Jeff Zhang <zj...@gmail.com>
Sent: Tuesday, May 24, 2016 8:05 PM
To: user@ambari.apache.org
Cc: Alejandro Fernandez
Subject: Re: Issues when using blueprint
It doesn't work even I specify it as HDP 2.4, any clues ?
[root@jzhang-test3-1 ~]# curl -X PUT -u admin:admin -d @repo.json -H 'X-Requested-By: ambari' http://jzhang-test3-1.opentacklocal:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/centos6/repositories/HDP
{
"status" : 404,
"message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, stackName=HDP, stackVersion=2.4, osType=centos6, repoId=HDP"
}
On Wed, May 25, 2016 at 12:11 AM, Sean Roberts <sr...@hortonworks.com>> wrote:
That’s correct. HDP 2.5 is not ready, but the stack version is listed in the Ambari directories. For now, please use 2.4 for now.
From: Andrew Stadtler [mailto:andy@phdata.io<ma...@phdata.io>]
Sent: Tuesday, May 24, 2016 4:03 PM
To: user@ambari.apache.org<ma...@ambari.apache.org>
Cc: Alejandro Fernandez <af...@hortonworks.com>>
Subject: Re: Issues when using blueprint
I don’t think HDP 2.5 is publicly available yet.
stackVersion=2.5
On May 24, 2016, at 2:49 AM, Jeff Zhang <zj...@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)
[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/operating_systems/centos6/repositories/HDP
{
"status" : 404,
"message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, stackName=HDP, stackVersion=2.5, osType=centos6, repoId=HDP"
On Sat, May 21, 2016 at 2:22 AM, Alejandro Fernandez <af...@hortonworks.com>> wrote:
Hi Jeff,
Valid repo names are "HDP" or "HDP-UTILS" instead of "hw_repo".
Thanks,
Alejandro
From: Jeff Zhang <zj...@gmail.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Thursday, May 19, 2016 at 11:23 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@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’s 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/versions/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=HDP, stackVersion=2.5, osType=centos6, repoId=hw_repo”
}
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={kerberos-env=[kdc_type, kdc_hosts, encryption_types, realm, ldap_url, container_dn]}}”
}
Attach are the request body file for these 2 cases.
--
Best Regards
Jeff Zhang
--
Best Regards
Jeff Zhang
--
Best Regards
Jeff Zhang
Re: Issues when using blueprint
Posted by Jeff Zhang <zj...@gmail.com>.
It doesn't work even I specify it as HDP 2.4, any clues ?
[root@jzhang-test3-1 ~]# curl -X PUT -u admin:admin -d @repo.json -H
'X-Requested-By: ambari'
http://jzhang-test3-1.opentacklocal:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/centos6/repositories/HDP
{
"status" : 404,
"message" :
"org.apache.ambari.server.controller.spi.NoSuchResourceException: The
specified resource doesn't exist: Stack data, stackName=HDP,
stackVersion=2.4, osType=centos6, repoId=HDP"
}
On Wed, May 25, 2016 at 12:11 AM, Sean Roberts <sr...@hortonworks.com>
wrote:
> That’s correct. HDP 2.5 is not ready, but the stack version is listed in
> the Ambari directories. For now, please use 2.4 for now.
>
>
>
> *From:* Andrew Stadtler [mailto:andy@phdata.io]
> *Sent:* Tuesday, May 24, 2016 4:03 PM
> *To:* user@ambari.apache.org
> *Cc:* Alejandro Fernandez <af...@hortonworks.com>
> *Subject:* Re: Issues when using blueprint
>
>
>
> I don’t think HDP 2.5 is publicly available yet.
>
>
>
> stackVersion=2.5
>
>
>
> On May 24, 2016, at 2:49 AM, Jeff Zhang <zj...@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)
>
>
>
>
>
>
>
> [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/operating_systems/centos6/repositories/HDP
>
> {
>
> "status" : 404,
>
> "message" :
> "org.apache.ambari.server.controller.spi.NoSuchResourceException: The
> specified resource doesn't exist: Stack data, stackName=HDP,
> stackVersion=2.5, osType=centos6, repoId=HDP"
>
>
>
> 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 <zj...@gmail.com>
> *Reply-To: *"user@ambari.apache.org" <us...@ambari.apache.org>
> *Date: *Thursday, May 19, 2016 at 11:23 PM
> *To: *"user@ambari.apache.org" <us...@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’s 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/versions/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=HDP,
> stackVersion=2.5, osType=centos6, repoId=hw_repo”
>
> }
>
>
>
> *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={kerberos-env=[kdc_type, kdc_hosts,
> encryption_types, realm, ldap_url, container_dn]}}”
>
> }
>
>
>
> Attach are the request body file for these 2 cases.
>
>
>
> --
>
> Best Regards
>
> Jeff Zhang
>
>
>
>
>
> --
>
> Best Regards
>
> Jeff Zhang
>
>
>
--
Best Regards
Jeff Zhang
RE: Issues when using blueprint
Posted by Sean Roberts <sr...@hortonworks.com>.
That’s correct. HDP 2.5 is not ready, but the stack version is listed in the Ambari directories. For now, please use 2.4 for now.
From: Andrew Stadtler [mailto:andy@phdata.io]
Sent: Tuesday, May 24, 2016 4:03 PM
To: user@ambari.apache.org
Cc: Alejandro Fernandez <af...@hortonworks.com>
Subject: Re: Issues when using blueprint
I don’t think HDP 2.5 is publicly available yet.
stackVersion=2.5
On May 24, 2016, at 2:49 AM, Jeff Zhang <zj...@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)
[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/operating_systems/centos6/repositories/HDP
{
"status" : 404,
"message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, stackName=HDP, stackVersion=2.5, osType=centos6, repoId=HDP"
On Sat, May 21, 2016 at 2:22 AM, Alejandro Fernandez <af...@hortonworks.com>> wrote:
Hi Jeff,
Valid repo names are "HDP" or "HDP-UTILS" instead of "hw_repo".
Thanks,
Alejandro
From: Jeff Zhang <zj...@gmail.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Thursday, May 19, 2016 at 11:23 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@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’s 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/versions/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=HDP, stackVersion=2.5, osType=centos6, repoId=hw_repo”
}
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={kerberos-env=[kdc_type, kdc_hosts, encryption_types, realm, ldap_url, container_dn]}}”
}
Attach are the request body file for these 2 cases.
--
Best Regards
Jeff Zhang
--
Best Regards
Jeff Zhang
Re: Issues when using blueprint
Posted by Andrew Stadtler <an...@phdata.io>.
I don’t think HDP 2.5 is publicly available yet.
stackVersion=2.5
> On May 24, 2016, at 2:49 AM, Jeff Zhang <zj...@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 <https://cwiki.apache.org/confluence/display/AMBARI/Blueprints>)
>
>
>
> [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/operating_systems/centos6/repositories/HDP <http://jzhang-test3-1.openstacklocal:8080/api/v1/stacks/HDP/versions/2.5/operating_systems/centos6/repositories/HDP>
> {
> "status" : 404,
> "message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, stackName=HDP, stackVersion=2.5, osType=centos6, repoId=HDP"
>
> On Sat, May 21, 2016 at 2:22 AM, Alejandro Fernandez <afernandez@hortonworks.com <ma...@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 <ma...@gmail.com>>
> Reply-To: "user@ambari.apache.org <ma...@ambari.apache.org>" <user@ambari.apache.org <ma...@ambari.apache.org>>
> Date: Thursday, May 19, 2016 at 11:23 PM
> To: "user@ambari.apache.org <ma...@ambari.apache.org>" <user@ambari.apache.org <ma...@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’s 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/versions/2.5/operating_systems/centos6/repositories/hw_repo <http://jzhang-test3-1.openstacklocal:8080/api/v1/stacks/HDP/versions/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=HDP, stackVersion=2.5, osType=centos6, repoId=hw_repo”
>
> }
>
>
> 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 <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={kerberos-env=[kdc_type, kdc_hosts, encryption_types, realm, ldap_url, container_dn]}}”
>
> }
>
>
>
> Attach are the request body file for these 2 cases.
>
>
> --
> Best Regards
>
> Jeff Zhang
>
>
>
> --
> Best Regards
>
> Jeff Zhang
Re: Issues when using blueprint
Posted by Jeff Zhang <zj...@gmail.com>.
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)
[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/operating_systems/centos6/repositories/HDP
{
"status" : 404,
"message" :
"org.apache.ambari.server.controller.spi.NoSuchResourceException: The
specified resource doesn't exist: Stack data, stackName=HDP,
stackVersion=2.5, osType=centos6, repoId=HDP"
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 <zj...@gmail.com>
> Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
> Date: Thursday, May 19, 2016 at 11:23 PM
> To: "user@ambari.apache.org" <us...@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’s 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/versions/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=HDP,
> stackVersion=2.5, osType=centos6, repoId=hw_repo”
>
> }
>
>
> *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={kerberos-env=[kdc_type, kdc_hosts,
> encryption_types, realm, ldap_url, container_dn]}}”
>
> }
>
>
> Attach are the request body file for these 2 cases.
>
> --
> Best Regards
>
> Jeff Zhang
>
--
Best Regards
Jeff Zhang
Re: Issues when using blueprint
Posted by Alejandro Fernandez <af...@hortonworks.com>.
Hi Jeff,
Valid repo names are "HDP" or "HDP-UTILS" instead of "hw_repo".
Thanks,
Alejandro
From: Jeff Zhang <zj...@gmail.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Thursday, May 19, 2016 at 11:23 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@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's 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/versions/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=HDP, stackVersion=2.5, osType=centos6, repoId=hw_repo"
}
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={kerberos-env=[kdc_type, kdc_hosts, encryption_types, realm, ldap_url, container_dn]}}"
}
Attach are the request body file for these 2 cases.
--
Best Regards
Jeff Zhang