incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (Commented) (JIRA)" <>
Subject [jira] [Commented] (AMBARI-25) Cleanup the REST entities
Date Mon, 03 Oct 2011 19:52:33 GMT


Owen O'Malley commented on AMBARI-25:

In xml, it now looks like:

  <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 Name="hdfs-site">
    <Property name="" value="/tmp/namenode" force="false"/>
    <Property name="" value="/tmp/datanode" force="false"/>

in JSON, it looks like:

"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": "", "@value": "/tmp/namenode", "@force": "false"},
      {"@name": "", "@value": "/tmp/datanode", "@force": "false"}

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:
>             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:!default.jspa
For more information on JIRA, see:


View raw message