hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kendall Thrapp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-691) Invalid NaN values in Hadoop REST API JSON response
Date Thu, 16 May 2013 20:31:16 GMT
Kendall Thrapp created YARN-691:

             Summary: Invalid NaN values in Hadoop REST API JSON response
                 Key: YARN-691
                 URL: https://issues.apache.org/jira/browse/YARN-691
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
    Affects Versions: 0.23.6
            Reporter: Kendall Thrapp

I've been occasionally coming across instances where Hadoop's Cluster Applications REST API
has returned JSON that PHP's json_decode function failed to parse.  I've tracked the syntax
error down to the presence of the unquoted word NaN appearing as a value in the JSON.  For


NaN is not part of the JSON spec, so its presence renders the whole JSON string invalid. 
Hadoop needs to return something other than NaN in this case -- perhaps an empty string or
the quoted string "NaN".

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message