ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Myroslav Papyrkovskyy <mpapyrkovs...@hortonworks.com>
Subject Re: why status can not use config['configurations']
Date Mon, 25 Jun 2018 16:02:50 GMT
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 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, <xiang.dai@sky-data.cn> wrote:
>
>> 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
>> function, both ok.
>>
>> And i try to print config in status funtion, it only prints
>> agentConfigParams.
>>
>> So how can i use config['configurations']['ntpd']['deploy']?
>>
>> Thanks.
>>
>>
>>
>>




Mime
View raw message