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

MiniYARNCluster is showing multiple Failed to instantiate default resource calculator warning messages.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: test, yarn
    • Labels:
    • Environment:

      OSX, JUnit

    • Hadoop Flags:
      Reviewed

      Description

      Whenever I try to start a MiniYARNCluster on Branch-2 (commit #0b61cca), I see multiple stack traces warning me that a resource calculator plugin could not be created

      (ResourceCalculatorPlugin.java:getResourceCalculatorPlugin(184)) - java.lang.UnsupportedOperationException: Could not determine OS: Failed to instantiate default resource calculator.
      java.lang.UnsupportedOperationException: Could not determine OS
      

      This is a minicluster. It doesn't need resource calculation. It certainly doesn't need test logs being cluttered with even more stack traces which will only generate false alarms about tests failing.

      There needs to be a way to turn this off, and the minicluster should have it that way by default.

      Being ruthless and marking as a blocker, because its a fairly major regression for anyone testing with the minicluster.

        Attachments

        1. YARN-4330.01.patch
          20 kB
          Varun Saxena
        2. YARN-4330.004.patch
          15 kB
          Varun Saxena
        3. YARN-4330.003.patch
          17 kB
          Varun Saxena
        4. YARN-4330.002.patch
          15 kB
          Varun Saxena

          Issue Links

            Activity

              People

              • Assignee:
                varun_saxena Varun Saxena
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: