Repository navigation
In progress
In progress
Copy link
Description
Task Description
Let the packaged lakehouse run its Spark SQL Connect server on the Hudi native Spark bundle (RFC-113, #20178) as an opt-in.
- Default: the regular Hudi Spark bundle, as today.
--native-bundle: the Spark SQL Connect server uses the native bundle instead (packaging/hudi-spark-native-bundle, artifacthudi-spark<spark>-native-bundle_<scala>, added in feat(spark): add hudi-spark-native-bundle packaging Apache DataFusion Comet #19674), which packages Apache DataFusion Comet.
The packaged lakehouse supports a single Spark version, so there is one native variant to package.
Scope
- Images. Publish two Spark SQL Connect images per release, built on the same Spark version: a regular one and a native one (for example
hudi-spark-connect:<ver>andhudi-spark-connect:<ver>-native). Both must be multi-arch (linux/amd64,linux/arm64). Publishing is covered by Publish Docker images for the Docker Compose lakehouse install with each release (explore and propose) #20985. - Docker Compose (Add Docker Compose installation for the Hudi lakehouse #20620).
lakehouse.sh up --native-bundleselects the native image and writes the native Spark configs to.env. Without the flag, nothing changes. The flag selects a prebuilt image; it does not trigger a build. - Helm / local Kubernetes. Add a matching value to the Spark SQL Connect chart, for example
bundle: standard | native. - Spark configuration for the native image:
- the Comet plugin and its configs;
spark.memory.offHeap.enabled=truewith an off-heap size that fits a laptop;spark.comet.scan.hudi.enabled=trueonce the native Hudi scan (feat(spark): read Hudi file slices natively through hudi-rs in the Comet bundle #20170) is available.
- Resources. Measure the extra memory the native image needs and update the Compose resource guidance.
- Validation. Run the Spark SQL Connect quickstart validation (test(spark): add Spark Connect quickstart validation #20462) against both images and compare results row for row. Cover copy-on-write and merge-on-read tables, and reads and writes.
- Docs. Document the flag and the Helm value. Also document what is native in each release: until feat(spark): read Hudi file slices natively through hudi-rs in the Comet bundle #20170 lands, Comet accelerates the operators above a JVM Hudi scan, not the scan itself.
- License / NOTICE. The native image includes Comet and its Rust dependencies, and its LICENSE and NOTICE must list them.
Constraints (from RFC-113)
- Java 17 and Linux only. This is fine inside the containers, including Docker Desktop on Apple silicon (
linux/arm64). - Comet publishes for Spark 3.4, 3.5, 4.0 and 4.1, so the lakehouse's single Spark version must be one of these.
Unaffected
Clients and agents do not change. Comet runs inside the Spark SQL Connect server, so the gateway, MCP clients, BI tools and PySpark Connect clients work the same with either image.
Related
- Parent: [Umbrella] RFC-117: Agent-ready packaged lakehouse for Apache Hudi #20619 (RFC-117 umbrella)
- RFC-113: docs(rfc): add RFC-113 for Spark native execution with DataFusion Comet and hudi-rs #20178 · native bundle: feat(spark): add hudi-spark-native-bundle packaging Apache DataFusion Comet #19674 · native Hudi scan: feat(spark): read Hudi file slices natively through hudi-rs in the Comet bundle #20170
- Docker Compose installation: Add Docker Compose installation for the Hudi lakehouse #20620 / feat(lakehouse): add Docker Compose installation #20621 · minikube installation: feat(lakehouse): add local minikube installation #20737
- Release images: Publish Docker images for the Docker Compose lakehouse install with each release (explore and propose) #20985
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs(rfc): add release images, native bundle, and JupyterLab to RFC-117