From 58e1523c8ea1363ea8ab115fb718227a90bfab87 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Mon, 8 Aug 2016 12:29:24 -0700 Subject: [PATCH] HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang) --- .../src/main/java/org/apache/hadoop/util/Shell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 71492684606..78f77c24100 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 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}. */