cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Workspace Client dbutils issue

SrinuM
New Contributor III

 

host = "https://adb-xxxxxx.xx.azuredatabricks.net"

token = "dapxxxxxxx"

we are using databricksconnect 

from databricks.sdk import WorkspaceClient

dbutil = WorkspaceClient(host=host,token=token).dbutils

files = dbutil.fs.ls("abfss://container-name@storage-account-name.dfs.core.windows.net/some_path")

print(files)

I'm able to read the directories/files in the root level, but not at the blob level. I have permissions to the ADLS external location. 
DatabricksError: No file or directory exists on path container-name@storage-accountname.dfs.core.windows.net/some_path.
DatabricksError Traceback (most re...
<command-2860011694601089>, line 7 4 from databricks.sdkimport WorkspaceClient 6 dbutil = WorkspaceC...abfss://container-name@storage-account-name.dfs.core.windows.net/some_path</a></span><span>&quot;</s...

Reference Link: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/databricks-connect/python/databricks-ut...

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group