Srimanth Gunturi created AMBARI-6281:
----------------------------------------
Summary: Provide 'properties_attributes' property on configuration
provided by /api/v1/configurations
Key: AMBARI-6281
URL: https://issues.apache.org/jira/browse/AMBARI-6281
Project: Ambari
Issue Type: Task
Components: client
Affects Versions: 1.7.0
Reporter: Srimanth Gunturi
Assignee: Srimanth Gunturi
Fix For: 1.7.0
When a call is made to
{{GET
http://server:8080/api/v1/clusters/c1/configurations?type=core-site&tag=version1}},
the response should include attributes of various properties also
{code}
{
"tag": "version1",
"type": "core-site",
"properties": {
"fs.defaultFS": "hdfs://server:8020",
"fs.trash.interval": "360",
"hadoop.proxyuser.falcon.groups": "users",
...
"mapreduce.jobtracker.webinterface.trusted": "false"
},
“properties_attributes”: {
“final”: {
"fs.defaultFS": “true”,
"hadoop.proxyuser.falcon.groups": “true”
},
}
}
{code}
This should support POST and PUT calls to update 'properties_attributes' of
configs.
Table {{ambari:clusterconfig}} will have new column called
{{config_attributes}}. This column will be of type varchar of size 32K. It will
contain a serialized JSON object where key is the attribute name, and value is
an object containing config-names as keys along with attribute values.
Example:
Configuration attributes would be persisted in the config_attributes column as
{code}
{
“final”: {
“fs.defaultFS”: “true”,
“hadoop.proxyuser.falcon.groups”: “true”
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)