Skip to content

Instantly share code, notes, and snippets.

@warmans
Created February 7, 2014 23:18
Show Gist options
  • Save warmans/8873949 to your computer and use it in GitHub Desktop.
Save warmans/8873949 to your computer and use it in GitHub Desktop.
Kairos Consistency Fix
confConsLevel.setDefaultReadConsistencyLevel(HConsistencyLevel.ONE);
confConsLevel.setDefaultWriteConsistencyLevel(HConsistencyLevel.ANY);
@warmans
Copy link
Author

warmans commented Feb 7, 2014

ANY = write to any node (including coordinator via handoff)
ONE = read from at least one node that has the data (ANY makes no sense here as only some nodes have the data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment