hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-860) start-all.sh fails on Ubuntu 6.10
Date Sat, 16 Jul 2011 17:02:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harsh J resolved HADOOP-860.
----------------------------

    Resolution: Fixed

This has long been fixed.

All bin/* shell scripts use {{#!/usr/bin/env bash}} as their shebangs, and this has been working
for a lot of OSes out of the box.

> start-all.sh fails on Ubuntu 6.10
> ---------------------------------
>
>                 Key: HADOOP-860
>                 URL: https://issues.apache.org/jira/browse/HADOOP-860
>             Project: Hadoop Common
>          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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message