hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-860) start-all.sh fails on Ubuntu 6.10
Date Tue, 14 Oct 2008 11:21:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639383#action_12639383

Steve Loughran commented on HADOOP-860:

So on Ubuntu 8.10 any script that goes
at the front is going to break? That's an Ubuntu regression, which could break a lot of things,
who end up fielding the support calls

yes, they've noticed: http://brainstorm.ubuntu.com/idea/2225/

but if you follow through, it's a WONTFIX

"all scripts are expected to say #!/bin/bash ; because if you want bash, you had better ask
for it explicitly."

Looking at the ubuntu discussion, their view is code that assumes that /bin/sh -> bash
contains the bug; not Ubuntu, which is only required to link to a POSIX-compliant version
of sh, not bash. From that point of view, if the hadoop scripts conatin bash-isms, then, yes,
it is the hadoop shell scripts that are at fault. This doesn't mean that the Ubuntu changes
are acceptable, only that they are defensible. 

> 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.

View raw message