Your replication factor is only set to 1, which means that each key
will only live on a single node.  If you do wait for bootstrapping to
commence (takes 90s in trunk, I don't recall in 0.6), you should see
some keys moving unless your inserts were all into a small range.
Perhaps your being impatient.

If not, I recommend that you start over, set the replication factor to
3, wait a good while for all the nodes to fully join the cluster, and
then make sure the keys you write to are random.

Gary.


On Thu, Jun 3, 2010 at 13:07, Stephan Pfammatter
<stephan.pfammat...@logmein.com> wrote:
> I’m having difficulties setting up a 3 way cassandra cluster. Any
> comments/help would be appreciated.
>
>
>
> My goal is that all data should be fully replicated amongst the 3 nodes. I
> want to simulate the failure of one node and proof that the test column
> family still can be accessed.
>
> In a nutshell I did the following 3 steps. The excerpt below shows the
> changed storage-con.xml:
>
> (1)    I started Cassandra-ca and worked fine. I added 3 rows to a cf
> cf_test.
>
> (2)    Then I started Cassandra-or. It comes up ok but goes into “sleeping
> 30000”…..mode
>
> (3)    Nodetool streams doesn’t reveal anything.
>
>
>
>
>
>
>
> Node: Cassandra-ca
>
> <AutoBootstrap>false</AutoBootstrap>
>
> <Keyspace Name="ks_test">
>
>                 <ColumnFamily Name="cf_test" CompareWith="UTF8Type" />
>
>
> <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
>
>                 <ReplicationFactor>1</ReplicationFactor>
>
>
> <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
>
> </Keyspace>
>
>   <Seeds><Seed>cassandra-ca</Seed></Seeds>
>
>   <ThriftAddress>cassandra-us</ThriftAddress>
>
>  <ThriftPort>9160</ThriftPort>
>
> <ListenAddress>cassandra-us</ListenAddress>
>
>
>
> Cassandra-or
>
> <AutoBootstrap>true</AutoBootstrap>
>
> <Keyspace Name="ks_test">
>
>                 <ColumnFamily Name="cf_test" CompareWith="UTF8Type" />
>
>
> <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
>
>                 <ReplicationFactor>1</ReplicationFactor>
>
>
> <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
>
> </Keyspace>
>
>   <Seeds><Seed>cassandra-or</Seed></Seeds>
>
>   <ThriftAddress>cassandra-or</ThriftAddress>
>
>  <ThriftPort>9160</ThriftPort>
>
> <ListenAddress>cassandra-or</ListenAddress>
>
>
>
> Cassandra-az
>
>
>
> Cassandra-or
>
> <AutoBootstrap>true</AutoBootstrap>
>
> <Keyspace Name="ks_test">
>
>                 <ColumnFamily Name="cf_test" CompareWith="UTF8Type" />
>
>
> <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
>
>                 <ReplicationFactor>1</ReplicationFactor>
>
>
> <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
>
> </Keyspace>
>
>   <Seeds><Seed>cassandra-az</Seed></Seeds>
>
>   <ThriftAddress>cassandra-az</ThriftAddress>
>
>  <ThriftPort>9160</ThriftPort>
>
> <ListenAddress>cassandra-az</ListenAddress>
>
>
>
>
>
>

Reply via email to