bigjocker's den

Category: bigdata

Cassandra Murmur3Partitioner token calculator

Cassandra recently replaced the default partitioner from the old RandomPartitioner to the much faster Murmur3Partitioner. The RandomPartitioner implementation uses MD5 hashes for the tokens, whereas Murmur3Partitioner uses, you guessed it, Murmur3. I was recently looking for a simple Javascript utility to generate the tokens for a Murmur3 based cluster, but could not find any. So…