@Kaizad Wadia - Thanks for the question and using MS Q&A platform.
This is excepted when you haven't used any credentials to access the Azure Data Lake Storage Gen2 account where you have the sample data.
According to the document: Connect to Azure Data Lake Storage Gen2 and Blob Storage - The following credentials can be used to access Azure Data Lake Storage Gen2 or Blob Storage:
- OAuth 2.0 with a Microsoft Entra ID service principal
- Shared access signatures (SAS)
- Account keys
For the demo purpose, I had used Account keys option to just to show case the authentication can be used to access Azure Data Lake Storage Gen2.
spark.conf.set(
"fs.azure.account.key.<storage-account>.dfs.core.windows.net","<storage-account-access-key>")
Checking to see if the sales table has been created.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.