Oleksandr Diachenko created AMBARI-3428:
-------------------------------------------

             Summary: 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


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)

Reply via email to