Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Databricks utilities with Databricks Connect for Python and external volumes #611

Open
castillo-luis opened this issue Apr 11, 2024 · 0 comments

Comments

@castillo-luis
Copy link

castillo-luis commented Apr 11, 2024

Description
I need do some file manipulations via dbutils. According to the Databricks Connect V2 docs here: https://docs.databricks.com/en/dev-tools/databricks-connect/python/databricks-utilities.html we should be able to use dbutils from this sdk. However, this does not seem to work at all for external volumes. In a Notebook I can easily use dbutils.fs commands on external volumes via the URI 's3://[bucket]/[prefix]' or via /Volumes/[catalog]/[schema]/[external_volume_name] dbfs location, however, when I use dbutils from this sdk when running code via Databricks Connect I get and error databricks.sdk.core.DatabricksError: No operations allowed on this path when attempting to access an external volume via /Volumes. Is this not possible at all? I can only seem to manipulate dbfs locations outside of /Volumes. How can I perform file system operations on other cloud storage locations? What's even more confusing when you pass an s3 URI to dbutils.fs.ls when running locally in python the SDK seems to ignore the s3://[bucket] part and just assumes that is referring to the root location '/' and returns the listing from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant