Skip to content

Instantly share code, notes, and snippets.

@ruurtjan
Created October 31, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruurtjan/a02a687aff17eb7e03e4643f541741b4 to your computer and use it in GitHub Desktop.
Save ruurtjan/a02a687aff17eb7e03e4643f541741b4 to your computer and use it in GitHub Desktop.
Kafka default partitioner
return Utils.toPositive(Utils.murmur2(keyBytes)) % numPartitions;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment