hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Isaacson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8432) SH script syntax errors
Date Thu, 24 May 2012 21:40:10 GMT

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

Andy Isaacson commented on HADOOP-8432:

That failure would be expected if /bin/sh is not bash.  For example, by default Debian uses
dash for /bin/sh.

If this is the cause of your problem, you can fix it by simply running the start-dfs.sh program
directly, or by explicitly running it under bash with "bash $HADOOP_INSTALL/sbin/start-dfs.sh",
or by changing your system's /bin/sh back to bash with "sudo dpkg-reconfigure dash" and answer
"no" when asked "use dash as system default shell".
> SH script syntax errors
> -----------------------
>                 Key: HADOOP-8432
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8432
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 2.0.0-alpha
>         Environment: ubuntu 12, Oracle_JDK 1.7.0_03,
> env. variables setted to:
> export JAVA_HOME=/mnt/dataStorage/storage/local/glassfish3/jdk7
> export PATH=$PATH:$JAVA_HOME/bin
> export HADOOP_INSTALL=/mnt/dataStorage/storage/local/hadoop-2.0.0-alpha
>            Reporter: sergio kosik
>            Priority: Blocker
>             Fix For: 2.0.0-alpha
> Hi, Everyone
> I just can't start with new binary release of hadoop with following CLI command:
> >>sh $HADOOP_INSTALL/sbin/start-dfs.sh
> ... /hadoop-2.0.0-alpha/sbin/start-dfs.sh: 78: ... /hadoop-2.0.0-alpha/sbin/../libexec/hadoop-config.sh:
Syntax error: word unexpected (expecting ")")
> Inside the script start-dfs.sh there are multiple syntax wrongs. Could you fix it?
> Regards

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message