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 09EDA18965 for ; Wed, 10 Feb 2016 13:20:56 +0000 (UTC) Received: (qmail 24664 invoked by uid 500); 10 Feb 2016 13:20:55 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 24635 invoked by uid 500); 10 Feb 2016 13:20:55 -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 24625 invoked by uid 99); 10 Feb 2016 13:20:55 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 13:20:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5900FC01AB for ; Wed, 10 Feb 2016 13:20:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.798 X-Spam-Level: ** X-Spam-Status: No, score=2.798 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=1.499, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id khf9QvDik8Xf for ; Wed, 10 Feb 2016 13:20:53 +0000 (UTC) Received: from relayvx11b.securemail.intermedia.net (relayvx11b.securemail.intermedia.net [64.78.52.184]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 5407242A16 for ; Wed, 10 Feb 2016 13:20:53 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id 9321A53F34 for ; Wed, 10 Feb 2016 05:20:46 -0800 (PST) Subject: Re: Retrieve configurable port number of a service in another service MIME-Version: 1.0 x-echoworx-msg-id: 070705a2-2566-4c80-be49-99bcd91468d9 x-echoworx-emg-received: Wed, 10 Feb 2016 05:20:46.540 -0800 x-echoworx-message-code-hashed: af5c47bc4f14a296e508b34686974dab16bc7d66f4050e2c397b65a765a30c23 x-echoworx-action: delivered Received: from 10.254.155.14 ([10.254.155.14]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 739 for ; Wed, 10 Feb 2016 05:20:46 -0800 (PST) Received: from MBX080-W4-CO-2.exch080.serverpod.net (unknown [10.224.117.102]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id 55F4953F34 for ; Wed, 10 Feb 2016 05:20:46 -0800 (PST) Received: from MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) by MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Wed, 10 Feb 2016 05:20:45 -0800 Received: from MBX080-W4-CO-1.exch080.serverpod.net ([10.224.117.101]) by mbx080-w4-co-1.exch080.serverpod.net ([10.224.117.101]) with mapi id 15.00.1130.005; Wed, 10 Feb 2016 05:20:45 -0800 From: Nate Cole To: "user@ambari.apache.org" Thread-Topic: Retrieve configurable port number of a service in another service Thread-Index: AQHRY+GNVIiRPppqd0SGqN6Vh/GGxJ8ldjeA Date: Wed, 10 Feb 2016 13:20:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [98.115.251.195] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_D2E0A2FE4C610ncolehortonworkscom_" --_000_D2E0A2FE4C610ncolehortonworkscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Configurations for the entire cluster are passed for all services, so readi= ng another service's value would use the same mechanism. Thanks, Nate From: Souvik Sarkhel > Reply-To: "user@ambari.apache.org" > Date: Wednesday, February 10, 2016 at 4:00 AM To: "user@ambari.apache.org" > Subject: Retrieve configurable port number of a service in another service Hi All, I am using Ambari 2.1.2 and I have created few custom services. The problem I am facing now is suppose I have a service X whose WebUI port = can be changed by the user while installation of the service through Ambari= UI.I am able to read the updated value in its corresponding master.py usin= g web_ui_port=3Dconfig['configurations']['demo.cfg']['webuiport']. But is there a way i can get the updated value of the same webui port of se= rvice X in master.py of another service Y Many thanks for your help and your time!! Thanks Souvik --_000_D2E0A2FE4C610ncolehortonworkscom_ Content-Type: text/html; charset="us-ascii" Content-ID: <6316C0B5101B8044BDD5279CEEFC06DC@exch080.serverpod.net> Content-Transfer-Encoding: quoted-printable
Configurations for the entire cluster are passed for all services, so = reading another service's value would use the same mechanism.

Thanks,
Nate

From: Souvik Sarkhel <souvik.sarkhel@gmail.com>
Reply-To: "user@ambari.apache.org" <user@ambari.apache.org>
Date: Wednesday, February 10, 2016 = at 4:00 AM
To: "user@ambari.apache.org" <user@ambari.apache.org>
Subject: Retrieve configurable port= number of a service in another service

Hi All,
I am using Ambari 2.1.2 and I have created few custom services.
The problem I am facing now is suppose I have a service X whose WebUI= port can be changed by the user while installation of the service through = Ambari UI.I am able to read the updated value in its corresponding master.p= y using web_ui_port=3Dconfig['configurations']['demo.cfg']['webuiport'].
But is there a way i can get the updated value of the same webui port= of service X in master.py of another service Y
Many thanks for your help and your time!!
Thanks
Souvik
--_000_D2E0A2FE4C610ncolehortonworkscom_--