azure-storage

Load file from Azure Files to Azure Databricks

Load file from Azure Files to Azure Databricks Question: Looking for a way using Azure files SDK to upload files to my azure databricks blob storage I tried many things using function from this page But nothing worked. I don’t understand why example: file_service = FileService(account_name=’MYSECRETNAME’, account_key=’mySECRETkey’) generator = file_service.list_directories_and_files(‘MYSECRETNAME/test’) #listing file in folder /test, …

Total answers: 2

AzureBlob Upload ERROR:The specified blob already exists

AzureBlob Upload ERROR:The specified blob already exists Question: I am trying to upload file to Azure container daily. I got an Error:”The specified blob already exists” when uploading file with same file( I want to overwrite the file) from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient conn_str = yml[‘AZURE_BLOB’][‘CONN_STR’] container_name = yml[‘AZURE_BLOB’][‘CONTAINER_NAME’] # Create the BlobServiceClient that …

Total answers: 2

Write Python DataFrame as CSV into Azure Blob

Write Python DataFrame as CSV into Azure Blob Question: I have got two questions on reading and writing Python objects from/to Azure blob storage. Can someone tell me how to write Python dataframe as csv file directly into Azure Blob without storing it locally? I tried using the functions create_blob_from_text and create_blob_from_stream but none of …

Total answers: 4