[
https://issues.apache.org/jira/browse/AMBARI-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119545#comment-13119545
]
Owen O'Malley commented on AMBARI-25:
-------------------------------------
In xml, it now looks like:
{noformat}
<Configuration>
<ConfigurationCategory Name="mapred-site">
<Property name="mapred.system.dir" value="/mapred/mapredsystem"
force="false"/>
<Property name="mapred.local.dir" value="/tmp/mapred" force="false"/>
</ConfigurationCategory>
<ConfigurationCategory Name="hdfs-site">
<Property name="dfs.name.dir" value="/tmp/namenode" force="false"/>
<Property name="dfs.data.dir" value="/tmp/datanode" force="false"/>
</ConfigurationCategory>
</Configuration>
{noformat}
in JSON, it looks like:
{noformat}
"Configuration": {
"ConfigurationCategory": [
{"@Name": "mapred-site", "Property": [
{"@name": "mapred.system.dir", "@value": "/mapred/mapredsystem",
"@force": "false"},
{"@name": "mapred.local.dir", "@value": "/tmp/mapred", "@force": "false"}
]},
{"@Name": "hdfs-site", "Property": [
{"@name": "dfs.name.dir", "@value": "/tmp/namenode", "@force": "false"},
{"@name": "dfs.data.dir", "@value": "/tmp/datanode", "@force": "false"}
]}
]}
{noformat}
In answer to the questions, the '@' is saying that it represents an attribute
in XML. Is there a way to make the JSON use 'Properties' while the XML uses
'Property'?
> Cleanup the REST entities
> -------------------------
>
> Key: AMBARI-25
> URL: https://issues.apache.org/jira/browse/AMBARI-25
> Project: Ambari
> Issue Type: Improvement
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Fix For: 0.1.0
>
>
> I want to clean up the configuration entity to streamline their xml/json
> representations.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira