Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D87E0BCF for ; Mon, 25 Jun 2012 00:07:23 +0000 (UTC) Received: (qmail 97742 invoked by uid 500); 25 Jun 2012 00:07:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97716 invoked by uid 500); 25 Jun 2012 00:07:20 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 97707 invoked by uid 99); 25 Jun 2012 00:07:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 00:07:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.44] (HELO mail-bk0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 00:07:14 +0000 Received: by bkty8 with SMTP id y8so3075923bkt.31 for ; Sun, 24 Jun 2012 17:06:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding :x-gm-message-state; bh=v0KlndM2EfeydM9V3/sY7g/S7+3SeUhS2hW5KzQollk=; b=ja3yuM2fGkiLEQT+4gZyqXnbydQh+nD/gOsr4TRgkg0BNinDZw4mQb9QtgPFPL6VJo ToWqs6+zkv26a6ybT43eu5M79pV69vf80tK/x7IpnWvUawHxy/RhT8rz/cRbKHSXM44A AynK+hj30Hhzd14fGL/M86WoagOvhQerCp5eKN3LZH+9FtsSaNnwS7JHwOAGYcYqVik+ 1l+z8YzZgKdAkr8PJL/VzeMmbB5oBrHQ/EHIGD1S1NnIP/oMPEPVxbH/znxWI4Pvoq8I qzsODhCRF0xfnz5y4IXYmQO4XQCJmCnCFxBHtz4oaLejhUqoRHHymo+4o5NgZi5qwxQS 2E/w== MIME-Version: 1.0 Received: by 10.204.143.138 with SMTP id v10mr3364184bku.40.1340582812815; Sun, 24 Jun 2012 17:06:52 -0700 (PDT) Received: by 10.205.114.13 with HTTP; Sun, 24 Jun 2012 17:06:52 -0700 (PDT) X-Originating-IP: [72.163.0.129] In-Reply-To: References: <4FE313C6.4060801@list-group.com> Date: Sun, 24 Jun 2012 19:06:52 -0500 Message-ID: Subject: Re: Starting cassandra with -D option From: Greg Fausak To: user@cassandra.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlDLxMMKt/IyWwnyhg7ZED/EcWM8KFo4wzmCMqezUy/Tk5TC+NVaehliLCP63yaw7sOfcV3 I did something similar for my installation, but I used ENV variables: I created a directory on a machine (call this the master) with directories for all of the distributions (call them slaves). So, consider: /master/slave1 /master/slave2 ... /master/slaven then i rdist this to all of my slaves. In the /master directory all of the standard cassandra distribution. In the /master/slave* directory all of the machine dependent stuff. Also in /master I have a .profile with: -bash-4.1$ cat /master/.profile # export CASSANDRA_HOME=3D$HOME/run SHOST=3D`hostname | sed s'/\..*//'` export CASSANDRA_CONF=3D$CASSANDRA_HOME/conf/$SHOST export CASSANDRA_INCLUDE=3D$CASSANDRA_HOME/conf/$SHOST/cassandra.in.sh . $CASSANDRA_HOME/conf/cassandra-env.sh PATH=3D$HOME/run/bin:$PATH echo 'to start cassandra type cassandra' this leaves me with this environment on each slave (slave1 example): -bash-4.1$ env | grep CAS CASSANDRA_HOME=3D/usr/share/cassandra/run CASSANDRA_CONF=3D/usr/share/cassandra/run/conf/slave1 CASSANDRA_INCLUDE=3D/usr/share/cassandra/run/conf/slave1/cassandra.in.sh Using this technique I maintain my Cassandra cluster on 1 machine and rdist to the participants. Rdist makes each node independent..... -greg On Sun, Jun 24, 2012 at 1:11 PM, aaron morton wro= te: > =A0Idea is to avoid having the copies of cassandra code in each node, > > If you run cassandra from the NAS you are adding a single point of failur= e > into the system. > > Better to use some form of deployment automation and install all the > requirement components onto each node. > > Cheers > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 22/06/2012, at 12:29 AM, Flavio Baronti wrote: > > The option must actually include also the name of the yaml file: > > Dcassandra.config=3Dfile:///Users/walmart/Downloads/Cassandra/Node2-Cassa= ndra1.1.0/conf/cassandra.yaml > > > Flavio > > > Il 6/21/2012 13:16 PM, Roshni Rajagopal ha scritto: > > Hi Folks, > > > =A0=A0We wanted to have a single cassandra installation, and use it to st= art > cassandra in other nodes by passing it the cassandra configuration > directories as a parameter. Idea is to avoid having the copies of cassand= ra > code in each node, and starting each node by getting into bin/cassandra o= f > that node. > > > > As per http://www.datastax.com/docs/1.0/references/cassandra, > > We have an option =96D where we can supply some parameters to cassandra. > > Has anyone tried this? > > Im getting an error as below. > > > walmarts-MacBook-Pro-2:Node1-Cassandra1.1.0 walmart$ =A0bin/cassandra > =A0-Dcassandra.config=3Dfile:///Users/walmart/Downloads/Cassandra/Node2-C= assandra1.1.0/conf > > walmarts-MacBook-Pro-2:Node1-Cassandra1.1.0 walmart$ =A0INFO 15:38:01,763 > Logging initialized > > =A0INFO 15:38:01,766 JVM vendor/version: Java HotSpot(TM) 64-Bit Server > VM/1.6.0_31 > > =A0INFO 15:38:01,766 Heap size: 1052770304/1052770304 > > =A0INFO 15:38:01,766 Classpath: > bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../= lib/antlr-3.2.jar:bin/../lib/apache-cassandra-1.1.0.jar:bin/../lib/apache-c= assandra-clientutil-1.1.0.jar:bin/../lib/apache-cassandra-thrift-1.1.0.jar:= bin/../lib/avro-1.4.0-fixes.jar:bin/../lib/avro-1.4.0-sources-fixes.jar:bin= /../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/com= mons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurrentli= nkedhashmap-lru-1.2.jar:bin/../lib/guava-r08.jar:bin/../lib/high-scale-lib-= 1.1.2.jar:bin/../lib/jackson-core-asl-1.9.2.jar:bin/../lib/jackson-mapper-a= sl-1.9.2.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:bin/../l= ib/json-simple-1.1.jar:bin/../lib/libthrift-0.7.0.jar:bin/../lib/log4j-1.2.= 16.jar:bin/../lib/metrics-core-2.0.3.jar:bin/../lib/mx4j-tools-3.0.1.jar:bi= n/../lib/servlet-api-2.5-20081211.jar:bin/../lib/slf4j-api-1.6.1.jar:bin/..= /lib/slf4j-log4j12-1.6.1.jar:bin/../lib/snakeyaml-1.6.jar:bin/../lib/snappy= -java-1.0.4.1.jar:bin/../lib/snaptree-0.1.jar:bin/../lib/jamm-0.2.5.jar > > =A0INFO 15:38:01,768 JNA not found. Native methods will be disabled. > > =A0INFO 15:38:01,826 Loading settings from > file:/Users/walmart/Downloads/Cassandra/Node2-Cassandra1.1.0/conf > > ERROR 15:38:01,873 Fatal configuration error error > > Can't construct a java object for > tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=3DNo sing= le > argument constructor found for class org.apache.cassandra.config.Config > > =A0in "", line 1, column 1: > > =A0=A0=A0=A0cassandra.yaml > > > The other option would be to modify cassandra.in.sh. > > Has anyone tried this?? > > > Regards, > > Roshni > > > This email and any files transmitted with it are confidential and intende= d > solely for the individual or entity to whom they are addressed. If you ha= ve > received this email in error destroy it immediately. *** Walmart > Confidential *** > > > > > >