You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2014/09/12 03:20:34 UTC
[jira] [Resolved] (AMBARI-7269) StackAdvisorResourceProvider
ignores configurations with array type values
[ https://issues.apache.org/jira/browse/AMBARI-7269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srimanth Gunturi resolved AMBARI-7269.
--------------------------------------
Resolution: Fixed
Committed to trunk
> 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
>
> Attachments: AMBARI-7269.patch
>
>
> 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)