Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 26213 invoked from network); 21 Aug 2007 20:18:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 20:18:57 -0000 Received: (qmail 38827 invoked by uid 500); 21 Aug 2007 20:18:53 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 38807 invoked by uid 500); 21 Aug 2007 20:18:53 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 38798 invoked by uid 99); 21 Aug 2007 20:18:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 13:18:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 20:19:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AE40C714208 for ; Tue, 21 Aug 2007 13:18:30 -0700 (PDT) Message-ID: <20605436.1187727510711.JavaMail.jira@brutus> Date: Tue, 21 Aug 2007 13:18:30 -0700 (PDT) From: "Allen Wittenauer (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1689) .sh scripts do not work on Solaris In-Reply-To: <4684203.1186497359258.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521573 ] Allen Wittenauer commented on HADOOP-1689: ------------------------------------------ +1 The script definitely won't work on SysV sh (which is what /bin/sh is on Solaris). The export commands should be appearing after the variable is set to be more compatible. For example: export JAVA_HOME=blah won't work, but JAVA_HOME=blah export JAVA_HOME should. With the changes that Sun is making in Nevada, this issue may go away at least for Solaris NV+ users. > .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.