Root Cause:
The error message is a generic error that hides the real error message of "Error: Authorization failed. Your token may be expired or lack the valid scope".
This appears to be a cold start problem with the Azure Databricks workspace. When deploying an Azure Databricks workspace, the workspace needs to be manually launched first in the Azure portal before the API calls are permitted.
Workaround:
When you encounter the error, manually launch the Databricks workspace, then re-run the deployment script (deploy.sh). Ensure you have set the DEPLOYMENT_ID environment variable. The script is designed to be idempotent to each deployment determined by the DEPLOYMENT_ID.
Note, if you don't set the DEPLOYMENT_ID variable, the deploy.sh script will simply create a fresh deployment with an random deployment_id which will fail instead of targeting your previous deployment.
Expected Behavior
Parking Sensor (databricks) deploys successfully.
Reproduce
Deploy the Parking Sensor Databricks as per instructions.
Additional Context
If applicable: Add any other context about the problem here; for example: doc changes, screenshots, logs, links, etc
Description
Deployment fails with
parse error: Invalid numeric literal at line 1, column 6".
Root Cause: The error message is a generic error that hides the real error message of "Error: Authorization failed. Your token may be expired or lack the valid scope".
This appears to be a cold start problem with the Azure Databricks workspace. When deploying an Azure Databricks workspace, the workspace needs to be manually launched first in the Azure portal before the API calls are permitted.
Workaround:
When you encounter the error, manually launch the Databricks workspace, then re-run the deployment script (
deploy.sh
). Ensure you have set theDEPLOYMENT_ID
environment variable. The script is designed to be idempotent to each deployment determined by theDEPLOYMENT_ID
.Note, if you don't set the
DEPLOYMENT_ID
variable, thedeploy.sh
script will simply create a fresh deployment with an random deployment_id which will fail instead of targeting your previous deployment.Expected Behavior
Parking Sensor (databricks) deploys successfully.
Reproduce
Deploy the Parking Sensor Databricks as per instructions.
Additional Context