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-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-dev-h...@hadoop.apache.org