Platform · Open reference architecture

The open lakehouse on a laptop

Spark 4.3, Apache Iceberg, Unity Catalog, Kafka, Airflow, MLflow and an agent, in Docker

The whole stack, one service at a time, on the machine in front of you.

Laptop (Docker)AWSUpdated 2026-11-21

In one paragraph

The open lakehouse on a laptop runs every layer of an open source data platform in Docker on one machine: SeaweedFS as S3-compatible storage, Apache Iceberg tables in Unity Catalog OSS 0.7 through its Iceberg REST endpoint, Apache Spark 4.3 behind a Spark Connect server, Spark Declarative Pipelines for the medallion, Kafka for events, Airflow 3 for scheduling and table maintenance, DuckDB reading the same tables, MLflow for models, and an AI agent on Omnigent with a local model, MCP tools and policies. It exists so a data engineer, a student or an AI agent can build, test and tear down a real lakehouse without a cloud account.

Platform

Spark 4.3, Apache Iceberg, Unity Catalog, Kafka, Airflow, MLflow and an agent, in Docker

Sources

Ingestion

Open lakehouse platform

AI and agents

Engine access

Execution

Data foundation

Operations

Serving

Teams

Lit boxes are part of this architecture, with the versions its reference repo pins. Switch to Full platform to see every capability. Select any box or team for details. marks a swappable choice.

When to use it

  • You want to learn how the layers of an open lakehouse fit together by building them.
  • You need a local integration environment with a real catalog and object store.
  • You want an AI agent to have a full, disposable stack to work against.

When to pick something else

  • Production: the course's Terraform chapter is illustrative and not applied.
  • Teams that need a released Iceberg runtime for Spark 4.3 today: the course builds one from an open Iceberg pull request.

Walkthrough

How data moves through it

  1. 1

    Storage and compute

    SeaweedFS serves the S3 API; Spark 4.3 runs behind a Spark Connect server that every client, including the agent, reaches at sc://.

  2. 2

    Tables and catalog

    Unity Catalog OSS 0.7 is the Iceberg REST catalog; tables are named iceberg.<namespace>.<table>, and the agent gets its own sandbox namespace.

  3. 3

    Bronze, silver, gold

    Batch loads and a Structured Streaming job land bronze; a Spark Declarative Pipeline derives silver and gold.

  4. 4

    Schedule and maintain

    Airflow runs the pipeline with backfills and a second DAG compacts files and expires snapshots.

  5. 5

    Serve and learn

    DuckDB reads gold through the same catalog, MLflow trains on it and records the snapshot id.

  6. 6

    Hand it to an agent

    An agent on Omnigent with a local model and MCP tools writes pipelines into its sandbox; policies require a passing dry run and ask before code pulls results onto one machine.

Bill of materials

Components and versions

Versions are the ones pinned in the reference repositories below.
CapabilityComponentRole in this architectureVersionLicense
SourcesSource systemsOrder-event generatorBatch and streaming order events, the course's one dataset
IngestionBatch and file ingestionIdempotent bronze loaderAppends each batch once
IngestionEvent streamingApache KafkaOrder events for the streaming chapterConfluent 7.5.0 imagesApache-2.0
AI and agentsAgent harness and policyOmnigentRuns the SDP agent and evaluates ALLOW, DENY and ASK policies on every tool call0.22.0
AI and agentsTools and skillsModel Context ProtocolNamed tools: read and write pipeline files, dry-run or run the pipeline, run one SQL statement; no shellMIT
AI and agentsModels and gatewayOllamaLocal model sdp-qwen3, built from qwen3:14b with a 16K context windowMIT
AI and agentsML lifecycleMLflowTracks a model trained on gold and logs the gold snapshot id3.1.0Apache-2.0
Engine accessSpark Connect sessionsSpark Connectsc://spark-connect:15002 for every client, the agent included4.3.0Apache-2.0
ExecutionBatch and SQLApache SparkIngestion and queries over Spark Connect4.3.0Apache-2.0
ExecutionDeclarative pipelinesSpark Declarative PipelinesBronze to silver to gold; the agent's output, gated on a dry runpyspark[pipelines]==4.3.0Apache-2.0
ExecutionStructured StreamingApache SparkKafka to iceberg.bronze.orders_raw with a checkpoint on S34.3.0Apache-2.0
ExecutionOther enginesDuckDBReads gold through the Iceberg REST endpoint1.5.6MIT
Data foundationCatalog and credentialsUnity Catalog OSSor Apache Polaris, Lakekeeper, unitycatalog-rsWritable Iceberg REST catalog; a sandbox namespace for the agent0.7.0Apache-2.0
Data foundationOpen table formatApache Icebergor Delta LakeBronze, silver and gold tables; snapshots for time travel and rollbackruntime 4.3_2.13 built from apache/iceberg#18749Apache-2.0
Data foundationObject storageSeaweedFSor RustFS, MinIO, Amazon S3s3://lakehouse/warehouse4.51Apache-2.0
OperationsOrchestrationApache Airflowor DagsterSchedules the medallion with backfills3.3.2Apache-2.0
OperationsTable maintenanceIceberg maintenance proceduresA DAG that runs rewrite_data_files, rewrite_manifests and expire_snapshotsApache-2.0

People and agents

Who works with it

Data engineers

Pipelines that are correct, idempotent and cheap to rerun.

Works with: Batch and file ingestion, Event streaming, Batch and SQL, Declarative pipelines, Structured Streaming, Orchestration, Table maintenance, Open table format

AI agents

Tools with clear arguments, a sandbox to write into, fast feedback from dry runs, and version-pinned context.

Works with: Tools and skills, Spark Connect sessions, Declarative pipelines

ML and AI engineers

Reproducible models, traced and evaluated agents, and a model gateway they control.

Works with: ML lifecycle, Models and gateway, Agent harness and policy, Tools and skills

Analysts and analytics engineers

One definition of each metric, fast SQL, and dashboards that match.

Works with: Other engines, Batch and SQL

Platform engineers

A platform that is boring to run: deployable from code, observable, with identities for every person, service and agent.

Works with: Object storage, Catalog and credentials, Spark Connect sessions

Governance and security

Policies that hold in every engine and for every agent, lineage for audits, and least privilege by default.

Works with: Catalog and credentials, Agent harness and policy

Run it

Reference code

open-lakehouse/lakehouse-masterclassApache-2.0Laptop (Docker)

The course that builds this stack chapter by chapter, from storage to agents. You write the Compose file yourself; there is no single command.

open-lakehouse/open-lakehouseApache-2.0Laptop (Docker)AWS

The same layers prebuilt, writing Delta Lake into Unity Catalog 0.6.0 with Spark 4.1, started with one script.

git clone https://github.com/open-lakehouse/open-lakehouse
cd open-lakehouse

cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders
./lakehouse setup          # validate env, install deps, download ~860MB of JARs
./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka
./lakehouse start unity-catalog
./lakehouse start mlflow
./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)

Caveats from the reference repos

  • There is no released Iceberg Spark runtime for Spark 4.3; chapter 5.5 builds it from apache/iceberg#18749 as a temporary step.
  • Unity Catalog 0.7 or later is required for Iceberg writes through its REST catalog.
  • The course recommends 16 GB of RAM; the agent's model needs about 12 GB of memory.
  • Older SeaweedFS releases have an S3A _temporary rename bug; the course pins 4.51.
  • In open-lakehouse, writes are Delta only: Unity Catalog 0.6.0 serves Iceberg read-only.

Answers

Frequently asked questions

Can I run a full open source lakehouse on a laptop?
Yes. The lakehouse masterclass builds Iceberg tables in Unity Catalog OSS 0.7 on SeaweedFS with Spark 4.3, Kafka, Airflow 3.3.2, DuckDB and MLflow in Docker, and adds an AI agent on Omnigent with a local Ollama model. The open-lakehouse repository offers a prebuilt Delta variant.
Can an AI agent work on a local lakehouse safely?
Yes. In the masterclass the agent writes only to its own sandbox namespace, uses named MCP tools instead of a shell, and policies require a passing dry run before any pipeline runs.
How do other engines read the tables?
Through Unity Catalog's Iceberg REST endpoint. DuckDB attaches it and reads the gold tables Spark wrote, without copies.