Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How do i find the blueprint used for a stack from cloudbreak shell?

Solved Go to solution

How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

I installed cloud controller and created a stack by choosing a Cluster Type from HDC UI. I do see the blueprint name on HDC UI whichever I selected. How can I find the same info via cloudbreak shell?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

hi @dbalasundaran,

stack list
stack select --id ...
cluster show
# This will give you a blueprintId
blueprint show --id ...
7 REPLIES 7

Re: How do i find the blueprint used for a stack from cloudbreak shell?

@dbalasundaran

As per the below cloudbreak documentation, you can use below commands in shell to see the blueprint information.

To see the available blueprints and use one of them:

blueprint list

then select one of the created blueprints

blueprint select --id <ID of the blueprint>

or

blueprint select --name <Name of the blueprint>

references:

Re: How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

Thanks @Ayub Khan. This helps me get the list of all blueprints and choosing a blueprint for deployment. But if a deployment is completed how can I see the blueprint name used to deploy that stack?

Re: How do i find the blueprint used for a stack from cloudbreak shell?

As you have mentioned in your question, that you can see the blueprint name used from the HDC UI. You can check for the blueprint name in the above list command output or use name in the blueprint show command. Hope this helps.

Highlighted

Re: How do i find the blueprint used for a stack from cloudbreak shell?

@dbalasundaran

Does this answer your question?

Re: How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

i can see it from HDC UI. but i wanted to get the same from cloudbreak shell too. I want to select a stack from shell and see which is the blueprint used by that stack. I will bring up a cluster and try the steps mentioned by @bbihari below and respond.

Re: How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

hi @dbalasundaran,

stack list
stack select --id ...
cluster show
# This will give you a blueprintId
blueprint show --id ...

Re: How do i find the blueprint used for a stack from cloudbreak shell?

Contributor

thanks @bbihari. this works!