ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-7269) StackAdvisorResourceProvider ignores configurations with array type values
Date Thu, 11 Sep 2014 23:19:33 GMT
Srimanth Gunturi created AMBARI-7269:
----------------------------------------

             Summary: StackAdvisorResourceProvider ignores configurations with array type
values
                 Key: AMBARI-7269
                 URL: https://issues.apache.org/jira/browse/AMBARI-7269
             Project: Ambari
          Issue Type: Task
          Components: ambari-server
    Affects Versions: 1.7.0
            Reporter: Srimanth Gunturi
            Assignee: Srimanth Gunturi
             Fix For: 1.7.0


Steps to reproduce:
# Do POST request with {{"storm.zookeeper.servers"}} having array value to {{/api/v1/stacks/HDP/versions/2.1/validations}}:
{code}
{
  "hosts": [
    "c6401.ambari.apache.org"
  ],
  "services": [
    "STORM"
  ],
  "validate": "configurations",
  "recommendations": {
    "blueprint": {
      "host_groups": [
        {
          "name": "host-group-1",
          "components": [
            {
              "name": "DRPC_SERVER"
            },
            {
              "name": "STORM_UI_SERVER"
            },
            {
              "name": "NIMBUS"
            },
            {
              "name": "STORM_REST_API"
            },
            {
              "name": "SUPERVISOR"
            }
          ]
        }
      ],
      "configurations": {
        "storm-site": {
          "properties": {
            "storm.zookeeper.servers": [
              "c6401.ambari.apache.org"
            ]
          }
        }
	  }
    },
    "blueprint_cluster_binding": {
      "host_groups": [
        {
          "name": "host-group-1",
          "hosts": [
            {
              "fqdn": "c6401.ambari.apache.org"
            }
          ]
        }
      ]
    }
  }
}
{code}
# Check generated {{services.json}} - it has no configurations:
{code}
[root@ambari ambari-server]# cat /var/run/ambari-server/stack-recommendations/2/services.json
| grep '"configurations" : {' -A 4
  "configurations" : {
    "storm-site" : {
      "properties" : { }
    }
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message