ConfigurationException: Unrecognized strategy option {DC2} scyllau

I am trying to do the 101 course but when I tried this

*CREATE KEYSPACE scyllaU WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'DC1' : 3, 'DC2' : 2};*

I got this

ConfigurationException: Unrecognized strategy option {DC2} passed to org.apache.cassandra.locator.NetworkTopologyStrategy for keyspace scyllau

I am on mac with docker

ScyllaDB doesn’t recognize DC2 as a datacenter, that is why it complains about it.

The DC you use for KEYSPACE replication needs to match the DCs the cluster is aware of from the Snitch, either explicitly with GossipingPropertyFileSnitch or implicitly from Ec2MultiRegionSnitch (for example) .

You can use nodetool status to check which DCs the cluster is aware of.

1 Like