โ11-30-2023 03:29 AM
I am creating a data frame by reading a table's data residing in Azure backed unity catalog. I need to write the df or file to GCS bucket. I have configured the spark cluster config using the GCP service account json values.
on running :
df1.write.format("parquet").save("gs://dev-XXXX-analyt-XXXXXXXX") getting error :
Insufficient privileges: User does not have permission SELECT on any file.. what could be the reason or resolution. Need help
โ11-30-2023 03:59 AM
Hi @kiko_roy, The error message youโre encountering, โInsufficient privileges: User does not have permission SELECT on any file,โ indicates that your user account lacks the necessary permissions to read files.
Letโs address this issue:
Cause:
Solution:
Warning:
Remember to execute the command as an admin, and ensure that the necessary permissions are granted. This should resolve the issue youโre facing.
If you encounter any further difficulties, feel free to ask for additional assistance! ๐
โ11-30-2023 03:59 AM
Hi @kiko_roy, The error message youโre encountering, โInsufficient privileges: User does not have permission SELECT on any file,โ indicates that your user account lacks the necessary permissions to read files.
Letโs address this issue:
Cause:
Solution:
Warning:
Remember to execute the command as an admin, and ensure that the necessary permissions are granted. This should resolve the issue youโre facing.
If you encounter any further difficulties, feel free to ask for additional assistance! ๐
โ11-30-2023 07:56 AM
Thanks @Kaniz_Fatma . The solution did work !!
โ11-30-2023 10:28 PM
I want to express my gratitude for your effort in selecting the most suitable solution. It's great to hear that your query has been successfully resolved. Thank you for your contribution.
โ04-15-2024 07:50 AM
Hi, is there any terraform resource to apply this GRANT or this have to be done always manually?
โ04-16-2024 06:56 AM
Hi @ruloweb , apart from granting access manually on any File, one way that resolved the issue for me was to use a cluster with single user.
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