[jira] [Commented] (AMBARI-25503) Ambari always rewrite the properties at startup

2020-04-27 Thread Andrey Vazhenin (Jira)


[ 
https://issues.apache.org/jira/browse/AMBARI-25503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17094014#comment-17094014
 ] 

Andrey Vazhenin commented on AMBARI-25503:
--

Hi, [~hapylestat]!

 

>  I don't think that it is a good idea to manage it as an text file.

I agree that it's not a good idea, but in most cases it's the simplest and the 
fastest way to handle.

>  which should be ignored by any CMS, which understand the file format

Yes, it can be ignored, but the provided information:

a. duplicates with the system, e.g. the access time or process up time can 
answer when the app was started and last configuraition were modified

b. the checksum of the file changes every time the application restarts

c. the modification time changes every time the application restarts

d. In some security reasons, It would be better if the application requires 
read-only access to the configuration files.

This list can be longer, but still I don't understand the purpose of doing such 
thing like give an opportunity to the application to manage it's own 
configuration that controls the application.

> Ambari always rewrite the properties at startup
> ---
>
> Key: AMBARI-25503
> URL: https://issues.apache.org/jira/browse/AMBARI-25503
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.7.5
>Reporter: Andrey Vazhenin
>Priority: Critical
>
> The ambari.properties file is always saves by the ambari-server process at 
> startup and saves the timestamp at the file, so any configuration management 
> systems can't manage this file.
> [Save the timestamp 
> line|[https://github.com/apache/ambari/blob/5895e4ed6b30a2da8a90fee2403b6cab91d19972/ambari-server/src/main/python/ambari_server/properties.py#L201]].
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AMBARI-25503) Ambari always rewrite the properties at startup

2020-04-22 Thread Dmytro Grinenko (Jira)


[ 
https://issues.apache.org/jira/browse/AMBARI-25503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17089599#comment-17089599
 ] 

Dmytro Grinenko commented on AMBARI-25503:
--

Not really understand the case.

 

{{ambari.properties}} contains the date, when the file were generated and it is 
placed in the comment section of the file, which should be ignored by any CMS, 
which understand the file format.  I don't think that it is a good idea to 
manage it as an text file.

 

> Ambari always rewrite the properties at startup
> ---
>
> Key: AMBARI-25503
> URL: https://issues.apache.org/jira/browse/AMBARI-25503
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.7.5
>Reporter: Andrey Vazhenin
>Priority: Critical
>
> The ambari.properties file is always saves by the ambari-server process at 
> startup and saves the timestamp at the file, so any configuration management 
> systems can't manage this file.
> [Save the timestamp 
> line|[https://github.com/apache/ambari/blob/5895e4ed6b30a2da8a90fee2403b6cab91d19972/ambari-server/src/main/python/ambari_server/properties.py#L201]].
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)