[
https://issues.apache.org/jira/browse/HADOOP-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521704
]
Owen O'Malley commented on HADOOP-1689:
---------------------------------------
Rather that requiring Solaris boxes link /bin/bash to where bash lives, the
standard trick is to use:
{code}
#!/usr/bin/env bash
... rest of script ...
{code}
Using the env command to look up bash on the path is cheating, but it is a
pretty standard cheat.
> .sh scripts do not work on Solaris
> ----------------------------------
>
> Key: HADOOP-1689
> URL: https://issues.apache.org/jira/browse/HADOOP-1689
> Project: Hadoop
> Issue Type: Bug
> Components: scripts
> Affects Versions: 0.13.1
> Environment: SunOS acl301 5.10 Generic_118855-33 i86pc i386 i86pc
> Reporter: David Biesack
> Priority: Minor
>
> the EXPORT commands in the scripts didn't play nicely w/the default shell &
> Hadoop wouldn't start ("... is not an
> identifier"). I changed the first #! line of bin/hadoop-daemon.sh and
> bin/hadoop to specify bash, then everything worked:
> #!/bin/bash
> ksh is probably another option that will work, but we did not try that
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.