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