Benoy Antony created HDFS-7402:
----------------------------------

             Summary: Enable JMX to directly output JSON objects instead JSON 
strings
                 Key: HDFS-7402
                 URL: https://issues.apache.org/jira/browse/HDFS-7402
             Project: Hadoop HDFS
          Issue Type: Improvement
    Affects Versions: 2.5.1
            Reporter: Benoy Antony
            Assignee: Benoy Antony


Currently many JMX beans provide Json content as strings.
JMXJsonServlet outputs these as Json Strings.  This also results in losing the 
original Json object structure.

An example is given below:

{code}
  "TieredStorageStats" : 
"{\"ARCHIVE\":{\"capacityTotal\":1498254102528,\"capacityUsed\":12288,\"capacityRemaining\":980102602752,\"blockPoolUsed\":12288,\"nodesInService\":3,\"numBlocks\":0}...
{code}



{code}
  "TieredStorageStats" : 
{"ARCHIVE":{"capacityTotal":1498254102528,"capacityUsed":12288,"capacityRemaining":980102602752,"blockPoolUsed":12288,"nodesInService":3,"numBlocks":0}...
{code}

In the former output {{TieredStorageStats}} maps to a JSON string while in the 
latter one it maps to a JSON object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to