Srimanth Gunturi created AMBARI-6559:
----------------------------------------
Summary: 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
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)