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 2BB349801 for ; Sun, 24 Jun 2012 18:12:00 +0000 (UTC) Received: (qmail 21482 invoked by uid 500); 24 Jun 2012 18:11:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21453 invoked by uid 500); 24 Jun 2012 18:11:57 -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 21444 invoked by uid 99); 24 Jun 2012 18:11:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jun 2012 18:11:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a49.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jun 2012 18:11:52 +0000 Received: from homiemail-a49.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a49.g.dreamhost.com (Postfix) with ESMTP id 8565B5E0059 for ; Sun, 24 Jun 2012 11:11:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=BYRniexEvG k5iMCbTnE1ejrNEiwWAwtqwrWEhAsrXUwerHeyLiTaCpbQ8e35KiO7JaJwPKm6It OaYEEVvgUZ/Ddim0j+17hGTNx5Ro2iRImctjV9dXJGWsJ/QnAe+vT1rxgjCvHoVi pyV5BUUVTGRGP3ovn3xGuX+KOAhTwEQEs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=bRhJkvJS7sT5Z0Wp 0YU+3a4l6go=; b=2g1yviaUF2Qnuvd4apkAUIpwu8yfTILA0HtzgemFUMBLBjOE 2KnHnVnGK5p8dOzLMrFs/+gkJAKHWg6wXAz8FYraYo8hg+tsw+sbCa0B2ur6H41/ RIk4RODV0c1lg6JfuXJ7ancXsUy6axQAhugc3EsMZmd1vJwU6UGBlSWL3kM= Received: from [172.16.1.4] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a49.g.dreamhost.com (Postfix) with ESMTPSA id EE8FC5E0057 for ; Sun, 24 Jun 2012 11:11:30 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/alternative; boundary="Apple-Mail=_B7061228-150E-498B-80D1-B8F8F6CF78A4" Subject: Re: Starting cassandra with -D option Date: Mon, 25 Jun 2012 06:11:27 +1200 In-Reply-To: <4FE313C6.4060801@list-group.com> To: user@cassandra.apache.org References: <4FE313C6.4060801@list-group.com> Message-Id: X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_B7061228-150E-498B-80D1-B8F8F6CF78A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > Idea 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 = failure into the system.=20 Better to use some form of deployment automation and install all the = requirement components onto each node.=20 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: >=20 > = Dcassandra.config=3Dfile:///Users/walmart/Downloads/Cassandra/Node2-Cassan= dra1.1.0/conf/cassandra.yaml >=20 >=20 > Flavio >=20 >=20 > Il 6/21/2012 13:16 PM, Roshni Rajagopal ha scritto: >> Hi Folks, >>=20 >> We wanted to have a single cassandra installation, and use it to = start cassandra in other nodes by passing it the cassandra configuration = directories as a parameter. Idea is to avoid having the copies of = cassandra code in each node, and starting each node by getting into = bin/cassandra of that node. >>=20 >>=20 >> 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. >>=20 >> walmarts-MacBook-Pro-2:Node1-Cassandra1.1.0 walmart$ bin/cassandra = -Dcassandra.config=3Dfile:///Users/walmart/Downloads/Cassandra/Node2-Cassa= ndra1.1.0/conf >> walmarts-MacBook-Pro-2:Node1-Cassandra1.1.0 walmart$ INFO = 15:38:01,763 Logging initialized >> INFO 15:38:01,766 JVM vendor/version: Java HotSpot(TM) 64-Bit Server = VM/1.6.0_31 >> INFO 15:38:01,766 Heap size: 1052770304/1052770304 >> INFO 15:38:01,766 Classpath: = bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../l= ib/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:b= in/../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/= commons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurre= ntlinkedhashmap-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-ma= pper-asl-1.9.2.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:b= in/../lib/json-simple-1.1.jar:bin/../lib/libthrift-0.7.0.jar:bin/../lib/lo= g4j-1.2.16.jar:bin/../lib/metrics-core-2.0.3.jar:bin/../lib/mx4j-tools-3.0= .1.jar:bin/../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 >> INFO 15:38:01,768 JNA not found. Native methods will be disabled. >> INFO 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 = single argument constructor found for class = org.apache.cassandra.config.Config >> in "", line 1, column 1: >> cassandra.yaml >>=20 >> The other option would be to modify cassandra.in.sh. >> Has anyone tried this?? >>=20 >> Regards, >> Roshni >>=20 >> This email and any files transmitted with it are confidential and = intended solely for the individual or entity to whom they are addressed. = If you have received this email in error destroy it immediately. *** = Walmart Confidential *** >>=20 >=20 >=20 >=20 --Apple-Mail=_B7061228-150E-498B-80D1-B8F8F6CF78A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252  Idea 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 failure into the = system. 

Better to use some form of = deployment automation and install all the requirement components onto = each node. 

Cheers

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-Cassandr= a1.1.0/conf/cassandra.yaml


Flavio


Il 6/21/2012 = 13:16 PM, Roshni Rajagopal ha scritto:
Hi = Folks,

  We = wanted to have a single cassandra installation, and use it to start = cassandra in other nodes by passing it the cassandra configuration = directories as a parameter. Idea is to avoid having the copies of = cassandra code in each node, and starting each node by getting into = bin/cassandra of 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$ =  bin/cassandra  -Dcassandra.config=3Dfile:///Users/walmart/Downloads/Cassandra/Node2-Cassandra1.1.0/conf=
walmarts-MacBook-Pro-2:Node1-Cassandra1.1.0 walmart$ =  INFO 15:38:01,763 Logging initialized
 INFO 15:38:01,766 JVM vendor/version: Java = HotSpot(TM) 64-Bit Server VM/1.6.0_31
 INFO 15:38:01,766 Heap size: = 1052770304/1052770304
=  INFO 15:38:01,766 Classpath: = bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../l= ib/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:b= in/../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/= commons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurre= ntlinkedhashmap-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-ma= pper-asl-1.9.2.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:b= in/../lib/json-simple-1.1.jar:bin/../lib/libthrift-0.7.0.jar:bin/../lib/lo= g4j-1.2.16.jar:bin/../lib/metrics-core-2.0.3.jar:bin/../lib/mx4j-tools-3.0= .1.jar:bin/../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
 INFO = 15:38:01,768 JNA not found. Native methods will be = disabled.
 INFO = 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 single argument constructor found for class = org.apache.cassandra.config.Config
 in "<reader>", line 1, column = 1:
=     cassandra.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 intended solely for = the individual or entity to whom they are addressed. If you have = received this email in error destroy it immediately. *** Walmart = Confidential ***





= --Apple-Mail=_B7061228-150E-498B-80D1-B8F8F6CF78A4--