Thursday, January 31, 2013

Cassandra Hector - May not be enough replicas present to handle consistency level.

If you get this error, make sure your datacenter and rack names are the same as the ones when you create your keyspace.

Make sure everything is lowercase.

For example:

In /etc/cassandra/cassandra-topology.properties, change all to lowercase.
10.216.218.73=dc1:rac1
10.31.2.31=dc2:rac1
default=dc1:rac1
Then create the keyspace in lowercase.
create keyspace helloworld with replication ={'class': 'NetworkTopologyStrategy', 'dc1': 1, 'dc2',1}; 

No comments:

Post a Comment