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

Add Builder methods for common yarn API records

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently yarn API records such as ResourceRequest, AllocateRequest/Respone as well as AMRMClient.ContainerRequest have multiple constructors / newInstance methods. This makes it very difficult to add new fields to these records.

      It would probably be better if we had Builder classes for many of these records, which would make evolution of these records a bit easier.

      (suggested by Karthik Kambatla)

        Attachments

        1. YARN-5552.000.patch
          31 kB
          Tao Jie
        2. YARN-5552.001.patch
          31 kB
          Tao Jie
        3. YARN-5552.002.patch
          62 kB
          Tao Jie
        4. YARN-5552.003.patch
          32 kB
          Tao Jie
        5. YARN-5552.004.patch
          30 kB
          Tao Jie
        6. YARN-5552.005.patch
          30 kB
          Tao Jie
        7. YARN-5552.006.patch
          34 kB
          Tao Jie
        8. YARN-5552.007.patch
          33 kB
          Tao Jie
        9. YARN-5552.008.patch
          34 kB
          Tao Jie
        10. YARN-5552.009.patch
          39 kB
          Tao Jie

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment