incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Mamajiwala <mamajiw...@yahoo.com>
Subject Re: Cassandra 0.6.1 - Help Required to setup Multiple Nodes/Cluster
Date Tue, 04 May 2010 14:35:01 GMT
Thanks for prompt reply.
As per your reply, my configuration should be like,
Node 1: Configuraiton
<Seeds>
    <Seed>43.193.211.215</Seed>      <Seed>43.193.213.160</Seed>
</Seeds>

Node 2: Configuration
<Seeds>
      <Seed>43.193.211.215</Seed>      <Seed>43.193.213.160</Seed>
  </Seeds>

About replication -  In my case it should be 2 as i got two cluster node. Am i right?In Cassandra,
is there any way to store data in specific cluster/node?
About partitioner - Can u please provide more information on this..I am trying to understand
internal data flow, configuration. If you have any documents, please share with me.
Thank you very much.
Mohammad


--- On Tue, 4/5/10, Shinpei Ohtani <shinpei.ohtani@gmail.com> wrote:

From: Shinpei Ohtani <shinpei.ohtani@gmail.com>
Subject: Re: Cassandra 0.6.1 - Help Required to setup Multiple Nodes/Cluster
To: user@cassandra.apache.org
Date: Tuesday, 4 May, 2010, 7:40

> All other parameters are identical in both servers. I have added some data 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 data from both
nodes
> but sometime can not. Not sure what's internally going on. Could you please 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 nodes.

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).
----
   <ReplicationFactor>1</ReplicationFactor>
   <Partitioner>org.apache.cassandra.dht.RandomPartitioner</Partitioner>
----

Hope this helps.
-----
Shinpei

On Tue, May 4, 2010 at 10:23 PM, Mohammad Mamajiwala
<mamajiwala@yahoo.com> wrote:
>
> Hi,
> I am very new to Cassandra 0.6.1. I have setup the two node on two different 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
> <Seeds>
>       <Seed>43.193.211.215</Seed>
>   </Seeds>
> Node 2: Configuration
> <Seeds>
>       <Seed>43.193.213.160</Seed>
>       <Seed>43.193.211.215</Seed>
>   </Seeds>
> All other parameters are identical in both servers. I have added some data 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 data from both nodes but sometime
can not. Not sure what's internally going on. Could you please help me on this.
> Thank You
> Mohammad



      
Mime
View raw message