Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7322118F76 for ; Mon, 11 Jan 2016 18:52:44 +0000 (UTC) Received: (qmail 11731 invoked by uid 500); 11 Jan 2016 18:52:44 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 11679 invoked by uid 500); 11 Jan 2016 18:52:43 -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 11667 invoked by uid 99); 11 Jan 2016 18:52:43 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 18:52:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 42BAC1A0A1B for ; Mon, 11 Jan 2016 18:52:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bHZZhl-VFdvn for ; Mon, 11 Jan 2016 18:52:42 +0000 (UTC) Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 7310643D99 for ; Mon, 11 Jan 2016 18:52:42 +0000 (UTC) Received: by mail-qg0-f46.google.com with SMTP id 6so331738564qgy.1 for ; Mon, 11 Jan 2016 10:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=ck9Kp5QzLuNtw/zmCQs5IWiOMN+Es2qgoB1sJeIZDMg=; b=MbpvXv3tFe3D/nxg2KZ5xY4wW1vK01MpnFkmvIpfd1jZyNdQXF7ddCbwO+4wEYhiYQ 12XusFEEBw45OLyefwQejm25haJtZlQRaPMhyfDhpoz3HznJ4bokes3zOigjjtiIVJd5 5gNbdWpi1mHU8Q62ZNPunFe0vKc4mnSmEWDqKIP3Zv8HuqIKqzLPm/ow1HstpEtIjd3T K7etJxZHgkqVD63/z5/dtRniWvaWTDreLZkuMbYj6O3+iT95+9MzbsiVyyofyg+8PotE DjE8V/izCU93HvI1HcPhHGkbMYzU8G0s9APSGl9iaYT6z1crnyOWWIDw3wf98tipXjp/ WLxQ== X-Received: by 10.140.201.20 with SMTP id w20mr110234621qha.10.1452538362030; Mon, 11 Jan 2016 10:52:42 -0800 (PST) Received: from test.local (c-174-55-93-103.hsd1.pa.comcast.net. [174.55.93.103]) by smtp.gmail.com with ESMTPSA id w16sm55101413qka.35.2016.01.11.10.52.41 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 10:52:41 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: How to determine stack version with qualifier From: Christopher Jackson In-Reply-To: <4B6BF92B-0E0A-4E7B-B224-E7E2BCB1B984@gmail.com> Date: Mon, 11 Jan 2016 13:52:40 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4B6BF92B-0E0A-4E7B-B224-E7E2BCB1B984@gmail.com> To: "user@ambari.apache.org" X-Mailer: Apple Mail (2.2104) 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 = wrote: >=20 > During customer service install It=E2=80=99s important for me to know = exactly which stack I=E2=80=99m working with. For instance I have the = following environment: >=20 > 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 >=20 > How can i tell if I=E2=80=99m using 2.3.GlusterFS or 2.3 stack? The = following commands only reported the numeric version and not the = GlusterFS qualifier. >=20 > stack_name =3D default("/hostLevelParams/stack_name", None).lower() = (this returned: =E2=80=98hdp=E2=80=99) > stack_version =3D default("/commandParams/version", None) (this = returned: 2.3.4.0-3485) >=20 > To be exact is there an Ambari function or property that will tell me = I=E2=80=99m using the 2.3.GlusterFS stack version? >=20 > Regards, >=20 > Christopher Jackson >=20 >=20 >=20