Re: why status can not use config['configurations']

2018-06-27 Thread David Quiroga
ed. > > In my thought, use config['configurations'] directly could be cool, right? > > - Original Message - > From: "Steve Varnau" > To: dev@ambari.apache.org > Sent: Tuesday, June 26, 2018 11:45:22 PM > Subject: RE: why status can not use config['configurations

Re: why status can not use config['configurations']

2018-06-26 Thread xiang . dai
Sure, it is a workaround which i have used. In my thought, use config['configurations'] directly could be cool, right? - Original Message - From: "Steve Varnau" To: dev@ambari.apache.org Sent: Tuesday, June 26, 2018 11:45:22 PM Subject: RE: why status can not use config['conf

RE: why status can not use config['configurations']

2018-06-26 Thread Steve Varnau
day, June 25, 2018 6:21 PM > To: dev@ambari.apache.org > Subject: Re: why status can not use config['configurations'] > > On Mon, Jun 25, 2018 at 08:59:31AM -0500, David Quiroga wrote: > > If possible can you share more code. Hard to understand what is going on. > > Are

Re: why status can not use config['configurations']

2018-06-25 Thread Dai Xiang
On Mon, Jun 25, 2018 at 08:59:31AM -0500, David Quiroga wrote: > If possible can you share more code. Hard to understand what is going on. > Are you modifying an existing script or creating a custom one? I want to create a custom service and in status function, i want to read config when install

Re: why status can not use config['configurations']

2018-06-25 Thread Myroslav Papyrkovskyy
It is not clear what Ambari version you are referring, but I guess your issue is that only "*-env" config types are sent to agent for status command execution. I believe this was done to save some bandwidth as those are pretty regular. On 25.06.18 16:59, David Quiroga wrote: > If possible can you

Re: why status can not use config['configurations']

2018-06-25 Thread David Quiroga
If possible can you share more code. Hard to understand what is going on. Are you modifying an existing script or creating a custom one? On Mon, Jun 25, 2018 at 3:01 AM, wrote: > Hi! > > config = Script.get_config() > Then I want to use config['configurations']['ntpd']['deploy'] in status >

why status can not use config['configurations']

2018-06-25 Thread xiang . dai
Hi! config = Script.get_config() Then I want to use config['configurations']['ntpd']['deploy'] in status function, but it says: Fail: Configuration parameter 'ntpd' was not found in configurations dictionary! I also use config['configurations']['ntpd']['deploy'] in start and stop