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

Add Builder methods for common yarn API records

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha2
    • None
    • None
    • 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 kasha)

      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

          People

            Tao Jie Tao Jie
            asuresh Arun Suresh
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: