Unable to access the databricks Views from SQL Endpoint

veerabhadra reddy kovvuri 181 Reputation points
2022-07-26T17:46:32.277+00:00

224925-image.png

  • User have access to SQL and Workspace in databricks
  • Databricks have RWX permission on the respective Views location in ADLS
  • These views are created from a parquet file.
  • User is given ALL Privileges on the DB and views.

But still, the user is getting the same error.
Error getting sample datajava.lang.SecurityException: User does not have permission SELECT on any file. at org.apache.spark.sql.hive.thriftserver.HiveThriftServerErrors$.runningQueryError(HiveThriftServerErrors.s'. (35) (SQLExecDirectW)

Databricks Admin users are not having any problem reading these View.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,581 Reputation points Moderator
    2022-08-01T07:11:25.13+00:00

    Hello @veerabhadra reddy kovvuri ,

    If you want to use a CTAS (CREATE TABLE AS SELECT) statement to create the table, the administrator should grant you SELECT privileges on the filesystem: "GRANT SELECT ON ANY FILE TO user1".

    For more details, refer to Table creation fails with security exception.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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