Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20621 +/- ##
============================================
- Coverage 80.87% 78.16% -2.71%
+ Complexity 36169 34917 -1252
============================================
Files 2589 2589
Lines 147664 147678 +14
Branches 18242 18244 +2
============================================
- Hits 119425 115439 -3986
- Misses 20018 23780 +3762
- Partials 8221 8459 +238
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
8245107 to
910f74b
Compare
df0a2d6 to
d49bd44
Compare
Package MinIO, Hive Metastore, Spark Connect and the agent gateway with sample data, readiness checks and optional containerized Ollama support. Keep Spark Connect queries on the HMS-backed HoodieCatalog.
d49bd44 to
2188671
Compare
nsivabalan
left a comment
There was a problem hiding this comment.
Thanks for the thorough work here, and for turning around the earlier round quickly. This change only adds files under hudi-lakehouse/docker/ plus a workflow_dispatch-only workflow. There are no Hudi storage, API or config changes, and the compose contracts and installer have good unit coverage (already picked up by agent_gateway_ci.yml's chart-lint job). Nothing blocking from me. A few things before merge:
Important
- A seed timeout leaves the server-side CTAS running. Details inline on
seed.py. - Please run the live acceptance workflow once. Trigger
hudi_lakehouse_docker_live.ymlon your fork withworkflow_dispatchand link a green run. It's the only check of the real build → HMS → MinIO → Connect path. - Issue #20620 no longer matches this PR. It still describes
--mcp-onlyand says unavailable models/providers produce readiness failures. This PR rejects--mcp-onlyand makes chat failures warnings, which I think is the better design, but could you update the issue's commands and acceptance checklist so the record matches what ships?
Suggestions
seed.pyvalidates a newly created table only once. If CTAS succeeds butverify()fails, the nextupsays "Preserving existing table" and passes. That fits the keep-existing-data design. A README line sayinglakehouse.sh testis the strict check would help.- The free Chainguard MinIO/mc images only publish
latest. Can you confirm the pinned digests stay pullable? If they get GC'd, a fresh install breaks with no code change. A short note in.env.exampleabout overridingMINIO_IMAGE/MINIO_CLIENT_IMAGEwould give users a way out. ANTHROPIC_API_KEY/OPENAI_API_KEYare passed into the gateway container even when the provider isollama. It's harmless on localhost, but passing them only when needed would be cleaner.check-connect.pyoverlaps withimages/spark-connect/check-ready.py. That's justified, sincecheck-ready.pyneeds a table and won't work on a first boot with an empty catalog. A one-line comment saying so would stop someone from "deduplicating" it later.
Nit
- In
seed.py, the expected row counts could sit in a dict next toDEMO_TABLESrather than3 if table == 'drivers' else 9.
|
@cshuo a heads-up on two RFC-117 requirements that affect the installation work in this PR and in #20737 (minikube). Neither needs to block these PRs. They can land as follow-ups, but it would help to keep the Spark SQL Connect image selectable (an image variable in Compose and a value in the chart) so they plug in cleanly.
|
@nsivabalan Thanks for the heads-up! Compose already exposes |
Describe the issue this Pull Request addresses
Closes #20620. Part of #20619 and RFC-117 (#20575).
Add a Docker Compose installation for users who want to try the Hudi lakehouse without setting up a host JDK, Maven, Kubernetes, or Helm. From a checkout,
./hudi-lakehouse/docker/lakehouse.sh up --buildstarts the stack, loads sample data, and verifies the MCP query path. Subsequent starts can reuse the images with./hudi-lakehouse/docker/lakehouse.sh up.Summary and Changelog
up. Support host Ollama, optional containerized Ollama with model caching, and API providers.qwen3:8b; other providers require explicitGATEWAY_LLM_PROVIDERconfiguration, and API keys alone do not select a provider. An unavailable LLM or missing API model produces a warning while successful MCP checks allow startup to complete. Chat UI and HTTP Chat API remain exposed and require a usable Gateway LLM; external MCP clients use their own model.compose.yamland opt-in source builds incompose.build.yaml. Consolidate HMS and S3A configuration inhive-site.xmland document each service's role.LIMIT 1reads for MCP startup checks and retain strict demo validation inlakehouse.sh test. Run seed withinit: true; on timeout, request Spark query cancellation with a bounded cleanup period. Document recovery from interrupted initialization. Recover an initialized HMS schema when its completion marker is missing.--local-llmconflicts with an explicitly configured API provider before building or starting services. Pin the default Hive image by digest and support aHIVE_IMAGEoverride.Impact
Adds a local Docker installation with localhost-bound Chat UI, MCP, Spark Connect, and MinIO console endpoints. Existing Helm charts, gateway interfaces, and the Hudi storage format are unchanged.
This is the checkout-based Compose installation and contributor build path. Publishing release images, versioned downloads, the public bootstrap endpoint, catalog adapters, and semantic-layer integration remain separate work under the umbrella issue. Default application image tags are local build tags, not published ASF artifacts.
Service startup, validation of newly initialized demo tables, and MCP failures still fail the command. Existing demo data does not have to match the original samples for startup to succeed; the explicit
testcommand still checks sample counts, totals and joins without modifying data. Explicit--local-llmstartup/model-download failures also fail; invalid required API-provider configuration can prevent the Gateway from starting.Risk Level
Low: changes are confined to the new Docker installation, its documentation, and tests. The local demo uses fixed storage credentials and unauthenticated services bound to localhost; it is not a production deployment.
Validation completed locally:
.hoodiefiles without an HMS entry; a subsequent CTAS rejected the existing path instead of overwriting it. The README documents stopping server work before retrying and the destructive full-reset option for disposable demos.mcp addcommands and verified Claude Code and Codex CLI using the saved HTTP registrations athttp://localhost:8000/mcp/. Each completed seven real MCP calls with expected counts, city totals and joins. Localhost bypassed the host HTTP proxy viaNO_PROXY; Claude Code used the existing model proxy configuration.qwen3:0.6b) invoked the SQL tool and returned expected city totals of 33, 55, and 77.hive-site.xmland created, inspected, and deleted a test directory in MinIO.The Docker live acceptance workflow passed on the fork via
workflow_dispatchat commit0943ddd424c: successful run. The Ubuntu hosted-runner job completed in 4 minutes 34 seconds, including fresh image builds, installation, persistence checks, repeated startup, and modified/empty-table preservation. Hosted-provider authentication/inference and the default 8B model were not exercised by these acceptance runs.Documentation Update
Organize the Docker guide around startup, querying through MCP, and querying through Chat UI. Include Claude Code and Codex CLI registration commands, sample queries and expected results; keep lifecycle commands and technical reference material in later sections. Add the environment example and Compose service comments, and link the guide from the lakehouse README.
Contributor's checklist