How to allow different keyspaces to use different partitioners in Cassandra?

709 views Asked by At

I am new to Cassandra and have a basic question regarding its partitioners.

According to the Cassandra document, the partitioner of a cluster should be set in the cassandra.yaml file. My question is: does this mean all keyspaces in a Cassandra cluster must use the same partitioner? If it's not, how to allow different keyspaces to use different partitioners?

1

There are 1 answers

7
Richard On BEST ANSWER

All keyspaces must use the same partitioner. This is to avoid requiring excessive configuration for each keyspace. However, you can choose replication options per keyspace: whether you want multiple datacenter replication and replication factors.