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/07/22 20:00:46 UTC

[jira] [Resolved] (AMBARI-6559) Config_groups API does not persist properties_attributes

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

Srimanth Gunturi resolved AMBARI-6559.
--------------------------------------

    Resolution: Fixed

+1 received. Committed to trunk.

> Config_groups API does not persist properties_attributes
> --------------------------------------------------------
>
>                 Key: AMBARI-6559
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6559
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.7.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-6559.patch
>
>
> After PUT request to {{/api/v1/clusters/c/config_groups/2}} with the next body:
> {code}
> [  
>    {  
>       "ConfigGroup":{  
>          "id":2,
>          "cluster_name":"c",
>          "group_name":"asd",
>          "tag":"MAPREDUCE2",
>          "description":"",
>          "hosts":[  
>             {  
>                "host_name":"ambari.local"
>             }
>          ],
>          "desired_configs":[  
>             {  
>                "type":"mapred-site",
>                "tag":"version133",
>                "properties":{  
>                   "mapreduce.task.io.sort.mb":"411"
>                },
>                "properties_attributes": {
> 	             "final": {
> 	               "yarn.app.mapreduce.am.resource.mb": "true", 
> 	               "mapreduce.map.memory.megabite": "true"
> 	             }
>                }
>             }
>          ]
>       }
>    }
> ]
> {code}
> configuration is created without attributes specified in request:
> {{GET /api/v1/clusters/c/configurations?type=mapred-site&tag=version133}}
> {code}
> {
>   "href" : "http://ambari.local:8080/api/v1/clusters/c/configurations?type=mapred-site&tag=version133",
>   "items" : [
>     {
>       "href" : "http://ambari.local:8080/api/v1/clusters/c/configurations?type=mapred-site&tag=version133",
>       "tag" : "version133",
>       "type" : "mapred-site",
>       "Config" : {
>         "cluster_name" : "c"
>       },
>       "properties" : {
>         "mapreduce.task.io.sort.mb" : "411"
>       }
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)