โ03-26-2024 12:52 PM
I used the same accessing method shown in https://community.databricks.com/t5/data-engineering/to-read-data-from-azure-storage/td-p/32230 but kept get the error below.
org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges:
Any help would be greatly appreciated.
โ03-27-2024 01:10 AM
Hello,
I will try to help you, but need some more details:
1) Are you using Unity Catalog on your workspace?
2) What is your storage account Firewall configuration setup?
3) Which exactly method you are using ? (Do you mount it? Or do you set spark config)?
4) Which authentication method you are using? SAS / KEY / OAUTH ?
โ03-28-2024 06:42 AM
Wojciech,
Thank you for your reply! Here are the answers of your questions.
1) Are you using Unity Catalog on your workspace? Yes
2) What is your storage account Firewall configuration setup?
Where can I find the Firewall configuration in my storage account?
3) Which exactly method you are using ? (Do you mount it? Or do you set spark config)?
I tried both mount and set spark config but got the same error.
4) Which authentication method you are using? SAS / KEY / OAUTH ?
I used the access key of the storage account to authenticate.
Thanks again!
โ03-28-2024 06:45 AM
Hi Kaniz,
Thank you for your help!
Yes, I used the correct syntax for the file location.
โ03-27-2024 01:27 AM
Hi Geoff123,
you can also take a look on your Storage Account firewall and make sure it is accessiable by Databricks Cluster.
In addition to this, if you are using Unity Catalog, the access pattern to storage will be different.
Wojciech
โ03-28-2024 06:51 AM
Wojciech,
Do you have any helpful tutorial to show how to check that Databricks Cluster is accessible to the Storage Account Firewall?
Thanks!
โ03-28-2024 06:56 AM
Hi,
you can find storage account firewall information by accessing resource in azure portal
Please mind that if you are using Unity Catalog you should NOT mount Storage Account, you should rather use abstraction of Storage Creadentials and External Location (optionally External Volumes)
โ03-28-2024 01:41 PM
I have the same settings as yours in Networking settings.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group