[
https://issues.apache.org/jira/browse/HADOOP-12580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011376#comment-15011376
]
Alan Burlison commented on HADOOP-12580:
----------------------------------------
I think that would work - AFAIK all the shell utilities that are used are POSIX
ones, although I'd have to check the command-line flags against POSIX to be
100% sure.
> 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)