Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13858

TestGridmixMemoryEmulation and TestResourceUsageEmulators fail on the environment other than Linux or Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: test
    • Labels:
      None
    • Environment:

      other than Linux or Windows, such as Mac

      Description

      TestGridmixMemoryEmulation.testTotalHeapUsageEmulatorPlugin fails on Mac.

      Running org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation
      Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.896 sec <<< FAILURE! - in org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation
      testTotalHeapUsageEmulatorPlugin(org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation)  Time elapsed: 0.009 sec  <<< ERROR!
      java.lang.UnsupportedOperationException: Could not determine OS
      	at org.apache.hadoop.util.SysInfo.newInstance(SysInfo.java:43)
      	at org.apache.hadoop.yarn.util.ResourceCalculatorPlugin.<init>(ResourceCalculatorPlugin.java:42)
      	at org.apache.hadoop.mapred.gridmix.DummyResourceCalculatorPlugin.<init>(DummyResourceCalculatorPlugin.java:32)
      	at org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation.testTotalHeapUsageEmulatorPlugin(TestGridmixMemoryEmulation.java:131)
      

      The following tests fail on Mac as well:

      • TestResourceUsageEmulators.testCumulativeCpuUsageEmulatorPlugin
      • TestResourceUsageEmulators.testCpuUsageEmulator
      • TestResourceUsageEmulators.testResourceUsageMatcherRunner

        Attachments

          Activity

            People

            • Assignee:
              ajisakaa Akira Ajisaka
              Reporter:
              ajisakaa Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: