cassandrapartitioner

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


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?


Solution

  • 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.