Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7301

Create stable Scheduler API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • yarn
    • None

    Description

      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:

      1. We make incompatible changes to YarnScheduler sometimes (see YARN-7138).
      2. Many methods in YarnScheduler are marked as @Public @Stable, but the class itself has no annotations, which defaults to @Private.
      3. 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rkanter Robert Kanter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: