A simple Python Dash web application for managing Databricks bundles.
- Simple Configuration: Just set bundle path, target environment, and profile
- Smart Initialization: Creates bundles if path doesn't exist, detects existing bundles
- Bundle Commands: Initialize, validate, deploy, run, and destroy operations
- Custom Commands: Execute any databricks bundle command
- Real-time Output: View command execution results
- Python 3.7+
- Databricks CLI installed and configured
-
Install dependencies:
pip install -r requirements.txt
-
Ensure Databricks CLI is installed and configured:
# Install Databricks CLI if not already installed pip install databricks-cli # Configure with your Databricks workspace databricks configure --token # Optional: Configure additional profiles databricks configure --token --profile myprofile
-
Start the application:
python app.py
-
Open your browser:
http://localhost:8050 -
Configure:
- Bundle Path: Path to your bundle directory (existing or new)
- Target Environment: Environment name (e.g., dev, staging, prod)
- Databricks Profile: Profile name or DEFAULT
-
Use commands:
- Initialize: Creates bundle if path doesn't exist, detects if exists
- Validate: Validates bundle configuration
- Deploy: Deploys bundle to target environment
- Run: Executes a job (specify job name)
- Destroy: Removes deployed resources
- Custom Command: Execute any databricks bundle command
- Path doesn't exist: Creates new bundle with
databricks bundle init - Path exists, no bundle: Initializes bundle in existing directory
- Path exists with bundle: Uses existing bundle for all operations
- Initialize: Runs from appropriate directory to create bundle
- Other commands: Changes to bundle directory and executes command
- All commands: Automatically adds
--targetand--profileparameters
- Set Bundle Path:
/Users/me/my-new-project - Click Initialize → Creates new bundle at that path
- Set Bundle Path:
/Users/me/existing-project - Click Validate → Runs validation from that directory
databricks bundle init default-python --output-dir my-project --target dev --profile myprofiledatabricks bundle validate --target dev --profile myprofiledatabricks bundle deploy --target dev --profile myprofile
- Command not found: Install Databricks CLI
- Authentication errors: Configure CLI with
databricks configure --token - Bundle not found: Check bundle path points to correct directory
- Permission errors: Ensure proper workspace permissions