01: Introduction to Declarative Automation Bundles (DABs)

๐Ÿ“‚ View Source Code


In this module, you will set up your local development environment, authenticate with Databricks, and deploy your first โ€œHello Worldโ€ Databricks Asset Bundle.

What Are We Building?

DAB Architecture Setup

Prerequisites and Local Setup

Complete the Prerequisites and Local Setup before continuing.

Bundle Structure

This module contains two core files:

  1. src/hello_world.py โ€” A basic Python script that prints a status message.
  2. databricks.yml โ€” The declarative configuration that tells Databricks how to deploy and run the script as a job.

How to Deploy and Run

Once authenticated, navigate to this folder (01-introduction-to-dab) in your terminal.

Step 1: Validate the bundle

Ensures your YAML syntax is correct before deploying to the cloud.

databricks bundle validate

Validation Success

Step 2: Deploy the bundle

Syncs your local files to the Databricks workspace and creates the job definition.

databricks bundle deploy

Deployment Success

Step 3: Run the job

Triggers the job execution directly from your terminal.

databricks bundle run hello_world_job

Run Success

Expected Result

Navigate to Workflows in your Databricks workspace. You will see a job named 01_Hello_World_DAB. Check the run logs to confirm the Python script executed successfully.

Run Success in UI