This example demonstrates how to define an Databricks App in a Databricks Asset Bundle.
It includes and deploys an example app and a job managed by DABs to a Databricks workspace. The app shows current status of the job and lists all existing runs.
For more information about Databricks Apps, please refer to the documentation.
- Databricks CLI v0.239.0 or above
Modify databricks.yml:
- Update the
hostfield underworkspaceto the Databricks workspace to deploy to.
Run databricks bundle deploy to deploy the app.
Run databricks bundle run job_manager to start the app and execute app deployment.
When you change app code or config, you need to run databricks bundle deploy and databricks bundle run job_manager to update the app source code and configuration.
Run databricks bundle open to navigate to the deployed app in your browser. Alternatively, run databricks bundle summary to display its URL.
Starting from Databricks CLI v0.250.0 it's possible to start your Databricks app locally using Databricks CLI.
To do so, run the following command in the root of the app folder
databricks apps run-local --prepare-environment --debug