Cassandra: 3.0.3

I am new to Cassandra.

I am creating a test instance of four nodes, two in each data center.
The idea is to verify that Cassandra can continue with writes even if
one DC is down and we further  lose one machine in the surviving DC.

This is in my cassandra-topology.properties

10.122.66.41=DC1:RAC1
10.122.98.53=DC1:RAC2
10.122.142.218=DC2:RAC1
10.122.142.219=DC2:RAC2

# default for unknown nodes
default=DC2:RAC1

Snitch property in cassandra.yaml
 endpoint_snitch: GossipingPropertyFileSnitch

Keyspace has been defined as follows

CREATE KEYSPACE mytesting
 WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1': 1, 'DC2': 1}
AND durable_writes = true ;

yet when I insert to a table via cqlsh with no consistency set, I get this error

Unavailable: code=1000 [Unavailable exception] message="Cannot achieve
consistency level ONE" info={'required_replicas': 1, 'alive_replicas':
0, 'consistency': 'ONE'}

I have verified that cassandra is up on four all nodes.

What is going on?

Thanks.

Reply via email to