Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 17274 invoked from network); 4 May 2010 13:40:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 13:40:47 -0000 Received: (qmail 85669 invoked by uid 500); 4 May 2010 13:40:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 85626 invoked by uid 500); 4 May 2010 13:40:46 -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 85618 invoked by uid 99); 4 May 2010 13:40:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 13:40:46 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shinpei.ohtani@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 13:40:40 +0000 Received: by vws4 with SMTP id 4so12708vws.31 for ; Tue, 04 May 2010 06:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=o0uvH5ST70fa+ECgr6SQnIg0oSqni/WZE7j3AK0ZM/4=; b=W7+JGSKXypl8DV7HxNNXtoYUVlfSBRCpITVTd6XXaYZOAgGlieGTt9nal1K2geGd21 FU5BZB4HJxVdUOi+HP3gmXCZKenDW0xX1uNYsHq63C17jo3nvyBUkrwTKMiqVa1pWDUk SN5v0f7/aQyzaIyNuyoIy9v/PddhC7szZ9zA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Psp9ISC1VZsEo32cv8dQ0jMOnrQy9ggmGTZ4eRajQh2oPJJ1FzULL97L1n+Q8PVBGH fkAKGpmHh8cX4/cKyhrAe+hamncyrxWcOgu0NmrkyFZqrAYitKP1Oro4FevWJtC9SM/b 0Gy6TpLgnqq7vPNB+aiTMSlmk+oV4Yhlo9pC0= MIME-Version: 1.0 Received: by 10.220.44.20 with SMTP id y20mr11154864vce.217.1272980419391; Tue, 04 May 2010 06:40:19 -0700 (PDT) Received: by 10.220.168.16 with HTTP; Tue, 4 May 2010 06:40:19 -0700 (PDT) In-Reply-To: <51184.77727.qm@web24208.mail.ird.yahoo.com> References: <51184.77727.qm@web24208.mail.ird.yahoo.com> Date: Tue, 4 May 2010 22:40:19 +0900 Message-ID: Subject: Re: Cassandra 0.6.1 - Help Required to setup Multiple Nodes/Cluster From: Shinpei Ohtani To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > All other parameters are identical in both servers. I have added some dat= a from both node > but i am confused on which node data stores. Does it stores in both node > OR only stores in one node from where it has been added. I can retrieve d= ata from both nodes > but sometime can not. Not sure what's internally going on. Could you plea= se help me on this. First of all, you should have same seed settings with both Node1 and Node2. There is no master node for Cassandra, so every node has to know others nod= es. And to know which one stores data, I think it depends on your partitioner and replication factor settings. If you have settings in storage-conf.xml like below, your data stores at only one node because replication factor is 1, and it is distributed by MD5 hash(RandomPartitioner). ---- 1 org.apache.cassandra.dht.RandomPartitioner ---- Hope this helps. ----- Shinpei On Tue, May 4, 2010 at 10:23 PM, Mohammad Mamajiwala wrote: > > Hi, > I am very new to Cassandra 0.6.1. I have setup the two node on two differ= ent server. I would like to know how data distribution and replication work= . > Node 1 IP:43.193.211.215 > Node 2 IP:43.193.213.160 > Node 1: Configuraiton > > =A0=A0 =A0 =A043.193.211.215 > =A0=A0 > Node 2: Configuration > > =A0=A0 =A0 =A043.193.213.160 > =A0=A0 =A0 =A043.193.211.215 > =A0=A0 > All other parameters are identical in both servers. I have added some dat= a from both node but i am confused on which node data stores. Does it store= s in both node OR only stores in one node from where it has been added. I c= an retrieve data from both nodes but sometime can not. Not sure what's inte= rnally going on. Could you please help me on this. > Thank You > Mohammad