Repository: hadoop Updated Branches: refs/heads/branch-2.8 f4bf3e22d -> 500608380
HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/50060838 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/50060838 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/50060838 Branch: refs/heads/branch-2.8 Commit: 50060838063fb150695d5fc1802b47f2859e8b88 Parents: f4bf3e2 Author: Arpit Agarwal <[email protected]> Authored: Mon Aug 8 12:29:24 2016 -0700 Committer: Arpit Agarwal <[email protected]> Committed: Mon Aug 8 12:31:19 2016 -0700 ---------------------------------------------------------------------- .../hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/50060838/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java ---------------------------------------------------------------------- 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 f98fbf9..3463d3f 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}. */ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
