Browse Source

HADOOP-3318. Recognize "Darwin" as an alias for "Mac OS X" to
support Soylatte. Contributed by Sam Pullara.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@652119 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 17 years ago
parent
commit
8c0b2e09da

+ 3 - 0
CHANGES.txt

@@ -102,6 +102,9 @@ Trunk (unreleased changes)
     HADOOP-3313. Avoid unnecessary calls to System.currentTimeMillis
     in RPC::Invoker. (cdouglas)
 
+    HADOOP-3318. Recognize "Darwin" as an alias for "Mac OS X" to
+    support Soylatte. (Sam Pullara via omalley)
+
 Release 0.17.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java

@@ -43,7 +43,7 @@ public class Environment extends Properties {
                || lowerOs.indexOf("freebsd") > -1 || lowerOs.indexOf("sunos") > -1
                || lowerOs.indexOf("solaris") > -1 || lowerOs.indexOf("hp-ux") > -1) {
       command = "env";
-    } else if (lowerOs.startsWith("mac os x")) {
+    } else if (lowerOs.startsWith("mac os x") || lowerOs.startsWith("darwin")) {
       command = "env";
     } else {
       // Add others here