You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "wondermen (via GitHub)" <gi...@apache.org> on 2026/04/08 06:56:23 UTC

[I] [Feature][Module Name] HBase sink support md5/hash in rowkey to avoid data hotspotting [seatunnel]

wondermen opened a new issue, #10723:
URL: https://github.com/apache/seatunnel/issues/10723

   ### Search before asking
   
   - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   Currently, HBase sinks do not support adding hash prefixes to rowkeys during synchronization, which can easily lead to data hotspots in read-heavy, write-light scenarios. Is there a way to achieve this without modifying SeaTunnel? There are two ways to achieve a similar effect: one is to directly expose the MD5 hash option in the HBase sink and support specifying the MD5 length; the other is to expose a function similar to MD5 in the transformer.
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Module Name] HBase sink support md5/hash in rowkey to avoid data hotspotting [seatunnel]

Posted by "wondermen (via GitHub)" <gi...@apache.org>.
wondermen closed issue #10723: [Feature][Module Name] HBase sink support md5/hash in rowkey to avoid data hotspotting
URL: https://github.com/apache/seatunnel/issues/10723


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Module Name] HBase sink support md5/hash in rowkey to avoid data hotspotting [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10723:
URL: https://github.com/apache/seatunnel/issues/10723#issuecomment-4204671887

   Thanks for raising this.
   
   I checked the current HBase sink path. Right now the sink itself does not have a built-in `md5` / hash-prefix rowkey option. `HbaseSinkWriter` just builds the rowkey from `rowkey_column` and `rowkey_delimiter`.
   
   But if your immediate goal is to avoid hotspotting, you do not necessarily need to modify SeaTunnel first. A practical workaround already exists:
   1. use a `Sql` transform to compute a hash-derived prefix column upstream
   2. put that computed column at the front of `rowkey_column`
   3. let the HBase sink assemble the final rowkey from those columns
   
   SeaTunnel already provides hash functions such as `MURMUR64` in the SQL transform layer, so this can be done with the current code path.
   
   So from the current implementation, this looks more like a usage/configuration question than a mandatory connector change. If what you need is specifically a built-in MD5 option with configurable prefix length, that can still be discussed as a small backward-compatible enhancement, but for hotspot mitigation the current workaround should already work.
   
   If you want, feel free to share your target rowkey format, and we can help refine the transform-side solution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org