Repository: hadoop Updated Branches: refs/heads/branch-2 287688d6c -> 2dbe16c02 refs/heads/trunk 2ed58c40e -> 58e1523c8
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/58e1523c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/58e1523c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/58e1523c Branch: refs/heads/trunk Commit: 58e1523c8ea1363ea8ab115fb718227a90bfab87 Parents: 2ed58c4 Author: Arpit Agarwal <[email protected]> Authored: Mon Aug 8 12:29:24 2016 -0700 Committer: Arpit Agarwal <[email protected]> Committed: Mon Aug 8 12:36:27 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/58e1523c/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 7149268..78f77c2 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]
