You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/11/08 00:31:18 UTC
[jira] [Assigned] (YARN-691) Invalid NaN values in Hadoop REST API
JSON response
[ https://issues.apache.org/jira/browse/YARN-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daryn Sharp reassigned YARN-691:
--------------------------------
Assignee: Daryn Sharp
> 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, 2.0.4-alpha
> Reporter: Kendall Thrapp
> Assignee: Daryn Sharp
>
> 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#6144)