Azure-Samples / modern-data-warehouse-dataops

DataOps for the Modern Data Warehouse on Microsoft Azure. https://aka.ms/mdw-dataops.
MIT License
570 stars 451 forks source link

Issue with databrick creation #480

Closed luchua-bc closed 2 years ago

luchua-bc commented 2 years ago

Description

The error is:

++ DATABRICKS_HOST=https://adb-<id>.19.azuredatabricks.net
++ bash -c 'databricks tokens create --comment '\''deployment'\'''
parse error: Invalid numeric literal at line 1, column 6
+ databricks_token=

Expected Behavior

Reproduce

Run deploy.sh and it stopped at the step described above.

I'm deploying using Docker Desktop set up through VS Code.

I also want to mention that when I access the Databricks workspace directly at https://my-id.azuredatabricks.net, I got the error:

The workspace you are trying to access does not exist in this Azure region, or your account <email>@gmail.com does not belong to any Databricks workspace in the region. Please ask your administrator to [add you as a user](https://docs.microsoft.com/azure/databricks/administration-guide/users-groups/users), or click [here](https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=https%3A%2F%2Fadb-<id>.azuredatabricks.net/login.html) to logout of Azure Active Directory and login with a different user.

However, I can log in through the "Launch Workspace" link in generated resource group from Azure portal.

Please help to address the issue or let me know what could be wrong. Thanks.

luchua-bc commented 2 years ago

A quick update. I found a work-around. I need to create a PAT (Personal Access Token) in user settings of Databricks workspace then run the following command to configure databricks session then run deploy.sh again:

/usr/local/bin/databricks configure --token
devlace commented 2 years ago

I've just tried deploying with the devcontainer, and I can't reproduce this. I appreciate that this is a few months old and we've made minor tweaks since, so might be worth doing a rebuild without cache of the devcontainer and trying again.