[prev in list] [next in list] [prev in thread] [next in thread]
List: cassandra-dev
Subject: Re: cassandra-cli suggestion
From: Jonathan Ellis <jbellis () gmail ! com>
Date: 2009-07-01 22:30:00
Message-ID: e06563880907011530ue9498a4t536fc3399d877345 () mail ! gmail ! com
[Download RAW message or body]
could you submit a patch to JIRA?
https://issues.apache.org/jira/browse/CASSANDRA
thanks,
-Jonathan
On Wed, Jul 1, 2009 at 1:18 PM, Anthony Molinaro<anthonym@pinkbunny.net> wrote:
> Hi,
>
> I'm in the process of packaging cassandra into some rpms to deploy at
> work and noticed that cassandra-cli is structured differently than
> cassandra and cassandra-nodeprobe. The current structure is
>
> classpath()
> {
> cassandra_home=`dirname $0`/..
> classp=$cassandra_home/build/classes
>
> for j in $cassandra_home/lib/*.jar; do
> classp=$classp:$j
> done
>
> printf $classp
> }
>
> if [ -z $CLASSPATH ]; then
> jvmargs="-cp `classpath`"
> fi
>
> java $jvmargs org.apache.cassandra.cli.CliMain "$@"
>
> Which assumes you are running cassandra out of the build directory, however
> if you were to change it to
>
> if [ "x$CASSANDRA_INCLUDE" = "x" ]; then
> for include in /usr/share/cassandra/cassandra.in.sh \
> /usr/local/share/cassandra/cassandra.in.sh \
> /opt/cassandra/cassandra.in.sh \
> `dirname $0`/cassandra.in.sh; do
> if [ -r $include ]; then
> . $include
> break
> fi
> done
> elif [ -r $CASSANDRA_INCLUDE ]; then
> . $CASSANDRA_INCLUDE
> fi
>
> if [ -z $CASSANDRA_CONF -o -z $CLASSPATH ]; then
> echo "You must set the CASSANDRA_CONF and CLASSPATH vars" >&2
> exit 1
> fi
>
> java -cp $CLASSPATH org.apache.cassandra.cli.CliMain "$@"
>
> It would work the same as cassandra and cassandra-nodeprobe in that you could
> install it centralling and run it.
>
> Just a suggestion,
>
> -Anthony
>
> --
> ------------------------------------------------------------------------
> Anthony Molinaro <anthonym@alumni.caltech.edu>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic