incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Diachenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-3428) Doing host override of a property saves only that property in file
Date Wed, 02 Oct 2013 14:48:46 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleksandr Diachenko updated AMBARI-3428:
----------------------------------------

    Attachment: AMBARI-3428.patch

> Doing host override of a property saves only that property in file
> ------------------------------------------------------------------
>
>                 Key: AMBARI-3428
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3428
>             Project: Ambari
>          Issue Type: Task
>          Components: controller
>    Affects Versions: 1.4.1
>            Reporter: Oleksandr Diachenko
>            Assignee: Oleksandr Diachenko
>            Priority: Critical
>             Fix For: 1.4.2
>
>         Attachments: AMBARI-3428.patch
>
>
> For the oozie-server host, I overrode {{oozie.service.PurgeService.older.than}} property
using UI. The API correctly showed the overridden property. 
> {noformat}
> "oozie-site" : {
>         "user" : "admin",
>         "host_overrides" : [
>           {
>             "host_name" : "oozie-server-host.internal",
>             "tag" : "version1380230970605_oozie-server-host.internal"
>           }
>         ],
>         "tag" : "version1"
>       },
> {noformat}
> The configuration for the host override also correctly had only 1 property:
> {noformat}
> {
>   "href" : "http://server:8080/api/v1/clusters/c1/configurations?type=oozie-site&tag=version1380230970605_oozie-server-host.internal",
>   "items" : [
>     {
>       "href" : "http://server:8080/api/v1/clusters/c1/configurations?type=oozie-site&tag=version1380230970605_oozie-server-host.internal",
>       "tag" : "version1380230970605_oozie-server-host.internal",
>       "type" : "oozie-site",
>       "Config" : {
>         "cluster_name" : "c1"
>       },
>       "properties" : {
>         "oozie.service.PurgeService.older.than" : "42"
>       }
>     }
>   ]
> }
> {noformat}
> However, Oozie server fails to start due to {{/etc/oozie/conf/oozie-site.xml}} having
just the following content:
> {noformat}
> <!--Thu Sep 26 18:04:37 2013-->
>   <configuration>
>     <property>
>     <name>oozie.service.PurgeService.older.than</name>
>     <value>42</value>
>   </property>
>   </configuration>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message