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

Cleanup FixedValueResource to avoid dependency to ResourceUtils

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.0.0, 2.10.0
    • Component/s: resourcemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      After YARN-7307, Client/AM don't need to keep a up-to-dated resource-type.xml in the classpath. Instead, they can use YarnClient/ApplicationMasterProtocol APIs to get the resource types from RM and refresh local types.

      One biggest issue of this approach is FixedValueResource: Since we initialize FixedValueResource in static block, and they won't be updated if resource types refreshed.

      So we need to properly update FixedValueResource to make it can get up-to-date results

        Attachments

        1. YARN-7410.branch-3.0.003.patch
          4 kB
          Wangda Tan
        2. YARN-7410.003.patch
          4 kB
          Wangda Tan
        3. YARN-7410.002.patch
          4 kB
          Wangda Tan
        4. YARN-7410.001.patch
          12 kB
          Sunil G

          Issue Links

            Activity

              People

              • Assignee:
                leftnoteasy Wangda Tan
                Reporter:
                sunilg Sunil G
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: