Create a Lakehouse
Prerequisites, permissions, and steps to create, apply, and verify a Lakehouse Resource on S3, ABFSS, or GCS.
Before you begin
Confirm required permissions
You need permissions to create and manage Lakehouse resources:
A Tenant Admin, Data Admin, or Data Developer role
Can Useon a SecretCan Useon a Compute resource for runtime components
For details, see Lakehouse: Access control.
Create a Lakehouse
1. Create the required Secrets
Create these Secrets before you apply the Lakehouse manifest:
A metastore Secret for PostgreSQL credentials
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
speciceberg.metastoreiceberg.storageiceberg.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.
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:
-dshows submitted spec, runtime state, status, and active properties-bshows the Kubernetes resources created during the build
Connectivity options:
Use
tcp streamto reach services inside the clusterPort-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?