hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1479) Invalid NaN values in Hadoop REST API JSON response
Date Thu, 20 Feb 2014 11:14:39 GMT

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

Hudson commented on YARN-1479:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #487 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/487/])
YARN-1479. Invalid NaN values in Hadoop REST API JSON response (Chen He via jeagles) (jeagles:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1569853)
* /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ApplicationMasterService.java
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/MockAM.java
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestApplicationMasterService.java


> Invalid NaN values in Hadoop REST API JSON response
> ---------------------------------------------------
>
>                 Key: YARN-1479
>                 URL: https://issues.apache.org/jira/browse/YARN-1479
>             Project: Hadoop YARN
>          Issue Type: Improvement
>    Affects Versions: 0.23.6, 2.0.4-alpha
>            Reporter: Kendall Thrapp
>            Assignee: Chen He
>             Fix For: 3.0.0, 2.5.0
>
>         Attachments: Yarn-1479.patch, Yarn-1479v2.patch
>
>
> I've been occasionally coming across instances where Hadoop's Cluster Applications REST
API (http://hadoop.apache.org/docs/r0.23.6/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Applications_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
example:
> "progress":NaN,
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message