Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 03:31 AM - edited 09-05-2024 03:34 AM
Hi @oleh_v ,
You can try below approach, its supports data up to 2GB. For example using curl:
# Parameters
databricks_workspace_url="<databricks-workspace-url>"
personal_access_token="<personal-access-token>"
local_file_path="<local_file_path>" # ex: /Users/foo/Desktop/file_to_upload.png
dbfs_file_path="<dbfs_file_path>" # ex: /tmp/file_to_upload.png
overwrite_file="<true|false>"
curl --location --request POST https://${databricks_workspace_url}/api/2.0/dbfs/put \
--header "Authorization: Bearer ${personal_access_token}" \
--form contents=@${local_file_path} \
--form path=${dbfs_file_path} \
--form overwrite=${overwrite_file}Upload large files using DBFS API 2.0 and PowerShell - Databricks