XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • util
    • None
    • Solaris

    Description

      During testing multiple failures of the following sort are reported:

      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:41)
              at org.apache.hadoop.mapred.gridmix.DummyResourceCalculatorPlugin.<init>(DummyResourceCalculatorPlugin.java:32)
              at org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation.testTotalHeapUsageEmulatorPlugin(TestGridmixMemoryEmulation.java:131)
      

      This is because there is no SysInfo subclass for Solaris, from SysInfo.java

        public static SysInfo newInstance() {
          if (Shell.LINUX) {
            return new SysInfoLinux();
          }
          if (Shell.WINDOWS) {
            return new SysInfoWindows();
          }
          throw new UnsupportedOperationException("Could not determine OS");
        }
      

      An implementation of SysInfoSolaris needs to be written and plumbed in to SysInfo.

      Attachments

        Issue Links

          Activity

            People

              alanburlison Alan Burlison
              alanburlison Alan Burlison
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: