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] [Updated] (AMBARI-6559) Config_groups API does not persist properties_attributes
Date Tue, 22 Jul 2014 00:24:38 GMT

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

Srimanth Gunturi updated AMBARI-6559:
-------------------------------------

    Attachment: AMBARI-6559.patch

Review at https://reviews.apache.org/r/23780/

> 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)

Mime
View raw message