Use the appropriate download mechanism for the environment hosting the sandbox path, as the file is already present at sandbox:/mnt/data/Tabela_Precos_Basmati_Verde.xlsx:
- If using Azure Databricks:
- First move or copy the file from the sandbox/ephemeral or local path into a location that supports download (for example, a Unity Catalog volume or cloud storage path) using
dbutils.fs:dbutils.fs.cp( "file:/mnt/data/Tabela_Precos_Basmati_Verde.xlsx", "/Volumes/my_catalog/my_schema/my_volume/Tabela_Precos_Basmati_Verde.xlsx" ) - Then download the file from that volume or storage location using the Databricks UI or your cloud provider’s storage tools.
- First move or copy the file from the sandbox/ephemeral or local path into a location that supports download (for example, a Unity Catalog volume or cloud storage path) using
- If using AzCopy with Azure Files (when the file is stored in an Azure file share):
- Run
azcopy copyfrom the file share URL to a local path, for example:azcopy copy \ 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/Tabela_Precos_Basmati_Verde.xlsx?<SAS-token>' \ '/local/download/path/Tabela_Precos_Basmati_Verde.xlsx' - Adjust the storage account, share name, SAS token, and local path as needed.
- Run
These approaches move the file from the sandbox or cloud file location to a local machine where it can be used.
References: