Return-Path: Delivered-To: apmail-lucene-hadoop-user-archive@locus.apache.org Received: (qmail 86159 invoked from network); 3 Jan 2007 17:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 17:39:19 -0000 Received: (qmail 18256 invoked by uid 500); 3 Jan 2007 17:39:25 -0000 Delivered-To: apmail-lucene-hadoop-user-archive@lucene.apache.org Received: (qmail 18234 invoked by uid 500); 3 Jan 2007 17:39:24 -0000 Mailing-List: contact hadoop-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-user@lucene.apache.org Delivered-To: mailing list hadoop-user@lucene.apache.org Received: (qmail 18225 invoked by uid 99); 3 Jan 2007 17:39:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 09:39:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [204.127.192.82] (HELO rwcrmhc12.comcast.net) (204.127.192.82) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 09:39:13 -0800 Received: from [192.168.168.15] (c-71-202-24-246.hsd1.ca.comcast.net[71.202.24.246]) by comcast.net (rwcrmhc12) with ESMTP id <20070103173852m120019brje>; Wed, 3 Jan 2007 17:38:52 +0000 Message-ID: <459BEA2B.4080701@apache.org> Date: Wed, 03 Jan 2007 09:38:51 -0800 From: Doug Cutting User-Agent: Thunderbird 1.5.0.8 (X11/20061117) MIME-Version: 1.0 To: hadoop-user@lucene.apache.org Subject: Re: default JAVA_HOME in hadoop-env.sh References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Shannon -jj Behrens wrote: > The default JAVA_HOME in hadoop-env.sh is /usr/bin/java. This is > confusing because /usr/bin/java is a binary, not a directory. On my > system, this resulted in: > > $ hadoop namenode -format > /usr/local/hadoop-install/hadoop/bin/hadoop: 122: > /usr/bin/java/bin/java: not found > exec: 179: /usr/bin/java/bin/java: not found > > I think it would be less confusing if the default were /usr instead. This is in a comment, but, I agree, the comment should provide a better example value. I just updated this to be /usr/lib/j2sdk1.5-sun, the correct value on Ubuntu 6.10. Doug