You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Christopher Jackson <ja...@gmail.com> on 2016/01/11 19:37:04 UTC
How to determine stack version with qualifier
During customer service install It’s important for me to know exactly which stack I’m working with. For instance I have the following environment:
pwd
/var/lib/ambari-server/resources/stacks/HDP
ls
2.0 2.0.6 2.0.6.GlusterFS 2.1 2.1.GlusterFS 2.2 2.3 2.3.GlusterFS
How can i tell if I’m using 2.3.GlusterFS or 2.3 stack? The following commands only reported the numeric version and not the GlusterFS qualifier.
stack_name = default("/hostLevelParams/stack_name", None).lower() (this returned: ‘hdp’)
stack_version = default("/commandParams/version", None) (this returned: 2.3.4.0-3485)
To be exact is there an Ambari function or property that will tell me I’m using the 2.3.GlusterFS stack version?
Regards,
Christopher Jackson
Re: How to determine stack version with qualifier
Posted by Alejandro Fernandez <af...@hortonworks.com>.
There's another variable called params.stack_version, e.g., "HDP-2.2"
(this is the version that the stack is currently on).
It has different semantics during a Rolling/Express upgrade, during both
upgrade and downgrade paths.
Keep in mind that params.version should only be used during a
Rolling/Express upgrade.
Thanks,
Alejandro
On 1/11/16, 10:37 AM, "Christopher Jackson"
<ja...@gmail.com> wrote:
>During customer service install It¹s important for me to know exactly
>which stack I¹m working with. For instance I have the following
>environment:
>
>pwd
>/var/lib/ambari-server/resources/stacks/HDP
>ls
>2.0 2.0.6 2.0.6.GlusterFS 2.1 2.1.GlusterFS 2.2 2.3 2.3.GlusterFS
>
>How can i tell if I¹m using 2.3.GlusterFS or 2.3 stack? The following
>commands only reported the numeric version and not the GlusterFS
>qualifier.
>
>stack_name = default("/hostLevelParams/stack_name", None).lower() (this
>returned: Œhdp¹)
>stack_version = default("/commandParams/version", None) (this returned:
>2.3.4.0-3485)
>
>To be exact is there an Ambari function or property that will tell me I¹m
>using the 2.3.GlusterFS stack version?
>
>Regards,
>
>Christopher Jackson
>
>
>
>
Re: How to determine stack version with qualifier
Posted by Christopher Jackson <ja...@gmail.com>.
Disregard, it seems what I wanted was:
default("/hostLevelParams/stack_version", None)
Regards,
Christopher Jackson
> On Jan 11, 2016, at 1:37 PM, Christopher Jackson <ja...@gmail.com> wrote:
>
> During customer service install It’s important for me to know exactly which stack I’m working with. For instance I have the following environment:
>
> pwd
> /var/lib/ambari-server/resources/stacks/HDP
> ls
> 2.0 2.0.6 2.0.6.GlusterFS 2.1 2.1.GlusterFS 2.2 2.3 2.3.GlusterFS
>
> How can i tell if I’m using 2.3.GlusterFS or 2.3 stack? The following commands only reported the numeric version and not the GlusterFS qualifier.
>
> stack_name = default("/hostLevelParams/stack_name", None).lower() (this returned: ‘hdp’)
> stack_version = default("/commandParams/version", None) (this returned: 2.3.4.0-3485)
>
> To be exact is there an Ambari function or property that will tell me I’m using the 2.3.GlusterFS stack version?
>
> Regards,
>
> Christopher Jackson
>
>
>