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

Filter NaN values from JMX json interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • common
    • Reviewed

    Description

      As we can see in this Yarn documentation beans can represent Float values as NaN. These values will be represented in the JMX response JSON like:

      ...
      "GuaranteedCapacity": NaN,
      ...
      

      Based on the JSON doc NaN is not a valid JSON token ( however some of the parser libs can handle it ), so not every consumer can parse values like these.

      To be able to parse NaN values, a new feature flag should be created.
      The new feature will replace the NaN values with 0.0 values.
      The feature is default turned off. It can be enabled with the hadoop.http.jmx.nan-filter.enabled config.

      Attachments

        Issue Links

          Activity

            People

              bkosztolnik Bence Kosztolnik
              bkosztolnik Bence Kosztolnik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: