浏览代码

HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang)

Arpit Agarwal 9 年之前
父节点
当前提交
58e1523c8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java

@@ -371,7 +371,7 @@ public abstract class Shell {
     String absolutePath = script.getAbsolutePath();
     return WINDOWS ?
       new String[] {"cmd", "/c", absolutePath }
-      : new String[] {"/bin/bash", bashQuote(absolutePath) };
+      : new String[] {"bash", bashQuote(absolutePath) };
   }
 
   /** a Unix command to set permission: {@value}. */