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" <[email protected]> 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 > > > >
