hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-11308) Enable JMX to directly output JSON objects instead JSON strings
Date Mon, 23 Feb 2015 20:53:12 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333800#comment-14333800
] 

Arpit Agarwal edited comment on HADOOP-11308 at 2/23/15 8:52 PM:
-----------------------------------------------------------------

+1 The change looks fine to me. I'll hold off committing until tomorrow in case [~wheat9]
has further comments.


was (Author: arpitagarwal):
The change looks fine to me. I'll hold off committing until tomorrow in case [~wheat9] has
further comments.

> Enable JMX to directly output JSON objects instead JSON strings
> ---------------------------------------------------------------
>
>                 Key: HADOOP-11308
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11308
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-11308.patch, HADOOP-11308.patch
>
>
> 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)

Mime
View raw message