For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a Lakehouse

Prerequisites, permissions, and steps to create, apply, and verify a Lakehouse Resource on S3, ABFSS, or GCS.

Before you begin

1

Confirm required permissions

You need permissions to create and manage Lakehouse resources:

  • A Tenant Admin, Data Admin, or Data Developer role

  • Can Use on a Secret

  • Can Use on a Compute resource for runtime components

For details, see Lakehouse: Access control.

2

Verify the Lakehouse domain

Confirm that a Lakehouse domain exists in your instance:

dataos-ctl domain get -t resource -a

If none appears, ask your Operator or Tenant Admin which domain to use.

3

Verify the runtime stack

Ensure the lakehouse-mruntime stack is provisioned and active. Spark Cluster uses this stack as its runtime.

dataos-ctl develop stack versions

The command must list lakehouse-mruntime by that exact name. Ask your Operator to provision it if it is missing.

4

Prepare object storage

Ensure you can access a supported object storage account: S3, ABFSS, or GCS.

5

Collect PostgreSQL details

Prepare these metastore connection details:

  • Host and port, usually 5432

  • Database and schema, usually public

  • Username and password, stored in a Secret

Create a Lakehouse

1. Create the required Secrets

Create these Secrets before you apply the Lakehouse manifest:

  1. A metastore Secret for PostgreSQL credentials

  2. A storage Secret for object storage credentials

Metastore Secret

name: ${metastore-secret-name}
version: v2alpha
type: secret
description: PostgreSQL metastore secret for Lakehouse.
secret:
  type: key-value
  data:
    username: ${postgres-username}
    password: ${postgres-password}

Storage Secret

You can also provide the GCS key as a file reference instead of an inline value:

Apply the Secret manifest:

Verify the Secret:

2. Draft the Lakehouse manifest

The Lakehouse manifest has these sections:

  • Resource metadata

  • spec

    • iceberg.metastore

    • iceberg.storage

    • iceberg.sherpa (optional)

    • iceberg.sparkCluster (optional)

Resource metadata

spec

Metastore

Storage

Sherpa

Spark Cluster

coreRequest accepts Kubernetes-style fractional CPU values (for example, 500m). Unlike cores, which only accepts whole-number values, coreRequest allows fine-grained CPU scheduling.

Sample Lakehouse Manifest

For the full attribute reference, see Lakehouse manifest reference.

3. Apply the Lakehouse manifest

Apply the manifest with the CLI:

Example:

4. Verify and inspect the Lakehouse

Check Lakehouse status:

List Lakehouses created by all users:

Inspect a specific Lakehouse:

Get build details:

Useful inspection flags:

  • -d shows submitted spec, runtime state, status, and active properties

  • -b shows the Kubernetes resources created during the build

Connectivity options:

  • Use tcp stream to reach services inside the cluster

  • Port-forward to the Spark Cluster for direct query access

Delete a Lakehouse:

After the Lakehouse is active, create a Lakehouse Depot to access it through the DataOS catalog.

Last updated

Was this helpful?