You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Dmitry Sivachenko (JIRA)" <ji...@apache.org> on 2015/11/18 12:56:10 UTC
[jira] [Commented] (HADOOP-12580) Hadoop needs a SysInfo class for
Solaris
[ https://issues.apache.org/jira/browse/HADOOP-12580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010844#comment-15010844 ]
Dmitry Sivachenko commented on HADOOP-12580:
--------------------------------------------
FreeBSD is also affected.
> 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)