hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Burlison (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12580) Hadoop needs a SysInfo class for Solaris
Date Wed, 18 Nov 2015 11:39:11 GMT
Alan Burlison created HADOOP-12580:
--------------------------------------

             Summary: Hadoop needs a SysInfo class for Solaris
                 Key: HADOOP-12580
                 URL: https://issues.apache.org/jira/browse/HADOOP-12580
             Project: Hadoop Common
          Issue Type: Sub-task
          Components: util
    Affects Versions: 2.7.1
         Environment: Solaris
            Reporter: Alan Burlison
            Assignee: Alan Burlison


During testing multiple failures of the following sort are reported:

{code}
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)
{code}

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

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

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message