[
https://issues.apache.org/jira/browse/HADOOP-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639412#action_12639412
]
Brian Bockelman commented on HADOOP-860:
----------------------------------------
Agreed.
If we use a command that is not supported by a POSIX-compliant version of sh,
and make the assumption that /bin/sh = /bin/bash (which is not true), then we
ought to explicitly ask for bash...
Looks like a Hadoop bug to me. Reopen?
> start-all.sh fails on Ubuntu 6.10
> ---------------------------------
>
> Key: HADOOP-860
> URL: https://issues.apache.org/jira/browse/HADOOP-860
> Project: Hadoop Core
> Issue Type: Bug
> Components: scripts
> Environment: Ubuntu 6.10 (and presumably Debian Etch)
> Reporter: Shannon -jj Behrens
> Assignee: Edward J. Yoon
> Priority: Minor
>
> I'm using Hadoop on Ubuntu 6.10. I ran into:
> $ start-all.sh
> starting namenode, logging to
> /usr/local/hadoop-install/hadoop/bin/../logs/hadoop-jj-namenode-jjinuxland.out
> /usr/local/hadoop-install/hadoop/bin/slaves.sh: 36: Syntax error: Bad
> substitution
> starting jobtracker, logging to
> /usr/local/hadoop-install/hadoop/bin/../logs/hadoop-jj-jobtracker-jjinuxland.out
> /usr/local/hadoop-install/hadoop/bin/slaves.sh: 36: Syntax error: Bad
> substitution
> Ubuntu 6.10 switched away from using bash for the default /bin/sh.
> The workaround is simple:
> (cd /bin && ln -sf bash sh)
> Nonetheless, it might be nice to update the script so that it works by
> default on Ubuntu since it is pretty popular. I'm guessing that the
> change would be simple. The offending line is:
> ssh $HADOOP_SSH_OPTS $slave $"${@// /\\ }" \
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.