How to custom rowKey for composite index in Hbase #3329
Replies: 2 comments 2 replies
-
What do you mean with the "rowKey for composite index" and what improvement should a custom rowKey bring? |
Beta Was this translation helpful? Give feedback.
-
OK, it sounds like you mean graph partitioning, that is the placement of vertices with their adjacencies across partitions/regions. Although the composite index is also stored in HBase as a separate table, it seems unlikely that you see the effect of unevenly spread index lookups. For implementing a custom placement strategy the ids.num-partitions and ids.placement config properties are relevant, as well as the IDPlacementStrategy interface to implement. |
Beta Was this translation helpful? Give feedback.
-
I want to custom rowKey for composite index when it's inserted to Hbase table by add salt to rowKey.
I find a post in StackOverFlow about this problem https://stackoverflow.com/questions/45237151/hbase-row-key-split-algorithm.
But they don't show where i have to modify code or config Hbase.
Can anyon help me?
Beta Was this translation helpful? Give feedback.
All reactions