Workspace client creation error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 04:28 PM
Hi,
We are trying to use Python SDK and create a workspace client using the following code:
%pip install databricks-sdk --upgrade
dbutils.library.restartPython()
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
Here is the notebook: https://zg-core-tech-lab.cloud.databricks.com/?o=1374115405812811#notebook/1956674069935518/command/...
And the compute cluster we are using is:
However, the above code throws error as:
default auth: cannot configure default credentials
The above code used to work for workspace
https://zg-data-eng-dev.cloud.databricks.com/?o=6867857852215282#files/1746507398130712
and cluster https://zg-data-eng-dev.cloud.databricks.com/compute/clusters/1214-223614-clopq8r5?o=686785785221528...
Can anyone please share how to fix?
Thank you