[
https://issues.apache.org/jira/browse/HADOOP-19874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076513#comment-18076513
]
ASF GitHub Bot commented on HADOOP-19874:
-----------------------------------------
pan3793 opened a new pull request, #8461:
URL: https://github.com/apache/hadoop/pull/8461
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
A new config `io.compression.codec.zstd.workers` (default 0, means disabled)
is introduced for ZStandardCodec to support multi-threaded compression, the
corresponding native Zstd parameter is `ZSTD_c_nbWorkers`
https://facebook.github.io/zstd/zstd_manual.html
### How was this patch tested?
Pass existing UTs and newly added UTs.
Integrated with Spark and tested writing JSON zstd with setting
`io.compression.codec.zstd.workers` to 0 and 4
<img width="1772" height="327" alt="image"
src="https://github.com/user-attachments/assets/c1678731-8120-422e-ae0f-10407d3c271b"
/>
<img width="1770" height="327" alt="image"
src="https://github.com/user-attachments/assets/8429edfd-e4e3-4008-a460-9c91dae3ac9c"
/>
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(HADOOP-19874)?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
This patch contains content generated by Claude Opus 4.7.
If an AI tool was used:
- [x] The PR includes the phrase "Contains content generated by <tool>"
where <tool> is the name of the AI tool used.
- [x] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
> ZStandardCodec supports multi threads compression
> -------------------------------------------------
>
> Key: HADOOP-19874
> URL: https://issues.apache.org/jira/browse/HADOOP-19874
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Cheng Pan
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]