Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Phoenix Salt Key

Phoenix Salt Key

Explorer

How can I  manually generate the salt key, if I know the number of buckets? I found the function that computes the key, but I cannot figure it out how it works.I do not know what offset and length are supposed to be: https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/S...

For example, if I have '1' as the value for the primary key, the row key generated, that contains the salting byte is '\x011'. Does anyone know the algorithm that generates the salting byte?

Don't have an account?
Coming from Hortonworks? Activate your account here