QuestionQ262

VerifiedProductionizing Data Pipelines

A data engineer has completed development of a new Declarative Automation Bundle (formerly known as a Databricks Asset Bundle) for a streaming pipeline. Before finishing, they need to:

  • Confirm that the configuration is syntactically correct
  • Push the code to the workspace
  • Trigger the pipeline to verify that it runs as expected

Which sequence of Databricks CLI commands should the engineer use to perform these steps in the correct order?

Explanation

The standard Databricks Asset Bundle (Declarative Automation Bundle) CLI workflow is: run databricks bundle validate first to check that the bundle's configuration files are syntactically correct and internally consistent; then run databricks bundle deploy to package and push the bundle's resources (notebooks, pipeline definitions, jobs, etc.) to the target Databricks workspace; and finally run databricks bundle run to trigger execution of a specified resource (such as the streaming pipeline) in the workspace to confirm it behaves as expected. The other listed commands—init (used only to scaffold a brand-new bundle from a template), sync, execute, check, upload, and start—are either not valid bundle lifecycle subcommands for this purpose or not the correct step to use here.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!