|
| 1 | + |
| 2 | +>>> [CLI] bundle deploy |
| 3 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-added-test/default/files... |
| 4 | +Deploying resources... |
| 5 | +Updating deployment state... |
| 6 | +Deployment complete! |
| 7 | + |
| 8 | +>>> musterr [CLI] bundle deployment migrate |
| 9 | +Note: Migration should be done after a full deploy. Running plan now to verify that deployment was done: |
| 10 | +create jobs.job_b |
| 11 | + |
| 12 | +Plan: 1 to add, 0 to change, 0 to delete, 1 unchanged |
| 13 | +Error: 'databricks bundle plan' shows actions planned, aborting migration. Please run 'databricks bundle deploy' first to ensure your bundle is up to date, If actions persist after deploy, skip plan check with --noplancheck option |
| 14 | + |
| 15 | +>>> [CLI] bundle deployment migrate --noplancheck |
| 16 | +Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json |
| 17 | + |
| 18 | +Validate the migration by running "databricks bundle plan", there should be no actions planned. |
| 19 | + |
| 20 | +The state file is not synchronized to the workspace yet. To do that and finalize the migration, run "bundle deploy". |
| 21 | + |
| 22 | +To undo the migration, remove [TEST_TMP_DIR]/.databricks/bundle/default/resources.json and rename [TEST_TMP_DIR]/.databricks/bundle/default/terraform/terraform.tfstate.backup to [TEST_TMP_DIR]/.databricks/bundle/default/terraform/terraform.tfstate |
| 23 | + |
| 24 | + |
| 25 | +>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan |
| 26 | +create jobs.job_b |
| 27 | + |
| 28 | +Plan: 1 to add, 0 to change, 0 to delete, 1 unchanged |
| 29 | + |
| 30 | +>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy |
| 31 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-added-test/default/files... |
| 32 | +Deploying resources... |
| 33 | +Updating deployment state... |
| 34 | +Deployment complete! |
| 35 | + |
| 36 | +>>> print_requests.py //jobs/create |
| 37 | +{ |
| 38 | + "headers": { |
| 39 | + "User-Agent": [ |
| 40 | + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" |
| 41 | + ] |
| 42 | + }, |
| 43 | + "method": "POST", |
| 44 | + "path": "/api/2.2/jobs/create", |
| 45 | + "body": { |
| 46 | + "deployment": { |
| 47 | + "kind": "BUNDLE", |
| 48 | + "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-added-test/default/state/metadata.json" |
| 49 | + }, |
| 50 | + "edit_mode": "UI_LOCKED", |
| 51 | + "format": "MULTI_TASK", |
| 52 | + "max_concurrent_runs": 1, |
| 53 | + "name": "Job B", |
| 54 | + "queue": { |
| 55 | + "enabled": true |
| 56 | + } |
| 57 | + } |
| 58 | +} |
| 59 | + |
| 60 | +>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan |
| 61 | +Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged |
0 commit comments