Question 16: Please map the below.

  1. Murmur3Partitioner
  2. RandomPartitioner
  3. ByteOrderedPartitioner
  4. Provides fast hashing and good performance
  5. Uniformly distributes data across the cluster based on MD5 hash values
  6. Partitioner for ordered partitioning
  7. A-3 B-2  C-1
  8. A-2 B-1   C-3
  9. A-1 B-3  C-2
  10. 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