voonhous opened a new pull request, #20909:
URL: https://github.com/apache/hudi/pull/20909

   ### Describe the issue this Pull Request addresses
   
   Trino releases bundle Trino's own Hudi connector until trinodb/trino#30682 
is released, and the `org.apache.hudi:hudi-trino` jar on Maven Central cannot 
go into a Trino server on its own (no plugin entry point, no dependencies). 
Users have no documented way to run Hudi's connector today.
   
   Depends on #20907, which adds `scripts/trino/build_plugin_zip.sh`; merge 
after it.
   
   ### Summary and Changelog
   
   `website/docs/sql_queries.md`, under `## Trino`, gains "Running Hudi's Trino 
connector":
   
   - why the Maven Central jar is not enough,
   - building the plugin zip for the server's Trino version (and the JDK 17 
module install a `-SNAPSHOT` checkout needs first),
   - replacing the bundled `hudi` plugin on every node: back up outside 
`plugin/` (Trino loads every directory under it), remove everything except 
`hdfs/`, copy the zip's jars in, restart,
   - notes on the Trino version match, the unaffected `lakehouse` connector, 
and rollback.
   
   New diagram `website/static/assets/images/trino/hudi-trino-plugin-swap.svg`: 
where the shim and the connector live in trinodb/trino and apache/hudi, and 
stock Trino 484's `plugin/hudi/` next to the swapped one, with the steps 
between them. The stock side matches the `trinodb/trino:484` image 
(`trino-hudi-484.jar`, `trino-hudi-484-services.jar`, `hudi-common` and 
`hudi-io` 1.2.1, `hdfs/`).
   
   ### Impact
   
   Documentation only.
   
   ### Risk Level
   
   none. The documented swap commands were run against a mock `plugin/hudi`: 
Trino's jars removed, the zip's jars copied in, `hdfs/` kept, backup outside 
`plugin/`. The site was not built locally.
   
   ### Documentation Update
   
   This PR.
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to