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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/06 03:20:00 UTC

[jira] [Commented] (YARN-6971) Clean up different ways to create resources

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

ASF GitHub Bot commented on YARN-6971:
--------------------------------------

riyakhdl opened a new pull request, #5113:
URL: https://github.com/apache/hadoop/pull/5113

   [YARN-6971](https://issues.apache.org/jira/browse/YARN-6971)
   
   There are several ways to create a resource object, e.g., BuilderUtils.newResource() and Resources.createResource(). These methods not only cause confusing but also performance issues, for example BuilderUtils.newResource() is significant slow than Resources.createResource().
   We could merge them some how, and replace most BuilderUtils.newResource() with Resources.createResource().
   
   
   
   




> Clean up different ways to create resources
> -------------------------------------------
>
>                 Key: YARN-6971
>                 URL: https://issues.apache.org/jira/browse/YARN-6971
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager, scheduler
>            Reporter: Yufei Gu
>            Assignee: Riya Khandelwal
>            Priority: Minor
>              Labels: newbie
>
> There are several ways to create a {{resource}} object, e.g., BuilderUtils.newResource() and Resources.createResource(). These methods not only cause confusing but also performance issues, for example BuilderUtils.newResource() is significant slow than Resources.createResource(). 
> We could merge them some how, and replace most BuilderUtils.newResource() with Resources.createResource().



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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