Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11308

Enable JMX to directly output JSON objects instead JSON strings

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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:

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

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

        Attachments

        1. HADOOP-11308.patch
          2 kB
          Benoy Antony
        2. HADOOP-11308.patch
          2 kB
          Benoy Antony

          Issue Links

            Activity

              People

              • Assignee:
                benoyantony Benoy Antony
                Reporter:
                benoyantony Benoy Antony
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: