diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java index 7149268460..78f77c2410 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java @@ -371,7 +371,7 @@ public static String[] getRunScriptCommand(File script) { 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}. */