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 "Sunil G (JIRA)" <ji...@apache.org> on 2017/01/20 08:44:26 UTC
[jira] [Commented] (YARN-6082) Invalid REST api response for
getApps since queueUsagePercentage is coming as INF
[ https://issues.apache.org/jira/browse/YARN-6082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831405#comment-15831405 ]
Sunil G commented on YARN-6082:
-------------------------------
Yes [~vinodkv]. You are correct. Both are un related.
*Analysis*
In {{SchedulerApplicationAttempt#getResourceUsageReport}}, QueueUsagePercent is calculated as follows
{code}
float queueUsagePerc = calc.divide(cluster, usedResourceClone, Resources
.multiply(cluster, queue.getQueueInfo(false, false).getCapacity()))
* 100;
{code}
Hence if {{queue.getQueueInfo(false, false).getCapacity())}} is 0, we will get divide by 0 error (INF). hence *queueUsagePercentage* will come as INF and will corrupt the JSON o/p.
> Invalid REST api response for getApps since queueUsagePercentage is coming as INF
> ---------------------------------------------------------------------------------
>
> Key: YARN-6082
> URL: https://issues.apache.org/jira/browse/YARN-6082
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 2.7.3
> Reporter: Sunil G
> Assignee: Sunil G
> Priority: Critical
>
> {noformat}
> 2017-01-11 07:17:11,475 WARN ipc.Server (Server.java:run(2202)) - Large response size 4476919 for call org.apache.hadoop.yarn.api.ApplicationClientProtocolPB.getApplications from 172.27.0.101:39950 Call#951474 Retry#0
> {noformat}
> Above server log is coming and JSON o/p was coming invalid
> For eg:
> {noformat}
> Unexpected token I in JSON at position 851
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org