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 "yunjiong zhao (JIRA)" <ji...@apache.org> on 2017/03/03 20:10:45 UTC

[jira] [Updated] (YARN-6285) Add option to set max limit on ResourceManager for ApplicationClientProtocol.getApplications

     [ https://issues.apache.org/jira/browse/YARN-6285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

yunjiong zhao updated YARN-6285:
--------------------------------
    Attachment: YARN-6285.001.patch

This patch allowed set a max limit on RM for ApplicationClientProtocol.getApplications.
Also in the log, it will tell cluster admin which user called the getApplications with bigger limit than the max limit like below
{quote}
INFO  [main] resourcemanager.ClientRMService (ClientRMService.java:getApplications(878)) - User yunjzhao called getApplications with limit=9223372036854775807
{quote}

> Add option to set max limit on ResourceManager for ApplicationClientProtocol.getApplications
> --------------------------------------------------------------------------------------------
>
>                 Key: YARN-6285
>                 URL: https://issues.apache.org/jira/browse/YARN-6285
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: yunjiong zhao
>            Assignee: yunjiong zhao
>         Attachments: YARN-6285.001.patch
>
>
> When users called ApplicationClientProtocol.getApplications, it will return lots of data, and generate lots of garbage on ResourceManager which caused long time GC.
> For example, on one of our RM, when called rest API " http://<rm http address:port>/ws/v1/cluster/apps" it can return 150MB data which have 944 applications.
> getApplications have limit parameter, but some user might not set it, and then the limit will be Long.MAX_VALUE.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org