Question 16: Please map the below.
- Murmur3Partitioner
- RandomPartitioner
- ByteOrderedPartitioner
- Provides fast hashing and good performance
- Uniformly distributes data across the cluster based on MD5 hash values
- Partitioner for ordered partitioning
- A-3 B-2 C-1
- A-2 B-1 C-3
- A-1 B-3 C-2
- A-1 B-2 C-3
Correct Answer: 4
Explanation: The main difference between the two partitioner is how each generates the token hash values. The RandomPartitioner uses a cryptographic hash that takes longer to generate than the Murmur3Partitioner. Cassandra doesn't really need a cryptographic hash, so using the Murmur3Partitioner results in a 3-5 times improvement in performance.
Cassandra offers the following partitioner that can be set in the cassandra.yaml file.
Murmur3Partitioner (default): uniformly distributes data across the cluster based on MurmurHash hash values.
RandomPartitioner: uniformly distributes data across the cluster based on MD5 hash values.
ByteOrderedPartitioner: keeps an ordered distribution of data lexically by key bytes