From cassandra-commits-return-6933-apmail-incubator-cassandra-commits-archive=incubator.apache.org@incubator.apache.org Tue Dec 01 02:03:43 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 86634 invoked from network); 1 Dec 2009 02:03:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 02:03:43 -0000 Received: (qmail 45623 invoked by uid 500); 1 Dec 2009 02:03:43 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 45593 invoked by uid 500); 1 Dec 2009 02:03:43 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 45565 invoked by uid 99); 1 Dec 2009 02:03:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 02:03:43 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 02:03:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 48066234C1F0 for ; Mon, 30 Nov 2009 18:03:21 -0800 (PST) Message-ID: <1672237333.1259633001293.JavaMail.jira@brutus> Date: Tue, 1 Dec 2009 02:03:21 +0000 (UTC) From: "Kay Kay (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Updated: (CASSANDRA-589) cassandra/bin scripts - do not assume JAVA_HOME is going to be set in production environments In-Reply-To: <1656502913.1259632882237.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kay Kay updated CASSANDRA-589: ------------------------------ Attachment: CASSANDRA-589.patch > cassandra/bin scripts - do not assume JAVA_HOME is going to be set in production environments > ---------------------------------------------------------------------------------------------- > > Key: CASSANDRA-589 > URL: https://issues.apache.org/jira/browse/CASSANDRA-589 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 0.4 > Environment: *nix > Reporter: Kay Kay > Priority: Minor > Fix For: 0.5 > > Attachments: CASSANDRA-589.patch > > > The script cassandra assumes JAVA_HOME is already set while invoking the shell or 'java' command is present in the command-line. > More often than not - in production - either of them are not good assumptions to make. > Luckily - cassandra provides a way to initialize some scripts in a separate file called cassandra.in.sh . > A better way would be to set JAVA_HOME in cassandra.in.sh , explicitly by the sys. admin / programmer . > Assuming that is the case - ./cassandra and ./cassandra-cli need to be modified to make sure it picks up the same. > Patch attached herewith. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.