Read files from Azure File share using databricks

Jeeva 161 Reputation points
2020-10-21T08:52:47.307+00:00

How can I read files stored in Azure file share using databricks. I am able to access container blob storage, but not the files in file share.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,175 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 89,466 Reputation points Microsoft Employee
    2020-10-21T10:28:11.627+00:00

    Hello @Jeeva ,

    In additional to @Vaibhav Chaudhari response.

    Before you start loading Azure Files to Azure Databricks, make sure the Azure Storage File module is installed.

    To install Azure Storage File module, you need to use: pip install azure-storage-file

    34054-image.png.

    Once module is installed you follow the stackoverflow thread to load the Azure Files to Azure Databricks.

    34063-image.png

    Hope this helps. Do let us know if you any further queries.


    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

1 additional answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,736 Reputation points
    2020-10-21T09:20:48.433+00:00

    Below similar question has the answer which uses SAS Key in the URL which can be used to access file share in Databricks

    https://stackoverflow.com/questions/59928574/load-file-from-azure-files-to-azure-databricks


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.