Shell.java has a hardcoded path to /bin/bash which is not correct on all platforms.
Pointed out by Allen Wittenauer while reviewing HADOOP-13434.
Porting Hadoop to FreeBSD
+1 pending Jenkins.
I also noticed there is "/bin/ls" in the same file, should this be changed to "ls" just like bash command? (i.e. is "ls" command also platform-dependent?) Allen Wittenauer Do you have any comments on this?
This message was automatically generated.
I've committed this for 2.8.0. Thanks for the contribution Chen Liang.
Good catch on /bin/ls. If it needs a fix we can do so in a separate Jira.
SUCCESS: Integrated in Hadoop-trunk-Commit #10236 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10236/)
HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen (arp: rev 58e1523c8ea1363ea8ab115fb718227a90bfab87)