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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now