You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2017/10/09 18:18:00 UTC

[jira] [Created] (YARN-7301) Create stable Scheduler API

Robert Kanter created YARN-7301:
-----------------------------------

             Summary: Create stable Scheduler API
                 Key: YARN-7301
                 URL: https://issues.apache.org/jira/browse/YARN-7301
             Project: Hadoop YARN
          Issue Type: Bug
          Components: yarn
            Reporter: Robert Kanter


Currently, it's not practical for a user to create their own scheduler.  Besides it being a large undertaking, the API is a mess.  A few of the problems:
# We make incompatible changes to {{YarnScheduler}} sometimes (see YARN-7138).
# Many methods in {{YarnScheduler}} are marked as {{\@Public}} {{\@Stable}}, but the class itself has no annotations, which defaults to {{\@Private}}.
# We often cast a {{YarnScheduler}} to an {{AbstractYarnScheduler}}, which means that custom schedulers must also subclass {{AbstractYarnScheduler}} or they'll get a {{ClassCastException}}.  However, {{AbstractYarnScheduler}} is {{\@Private}} {{\@Unstable}}.

It could be useful to provide a proper usable API for custom schedulers.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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