Enable Table Access Control is not enabled on this cluster?

Rohit Kulkarni 731 Reputation points
2023-01-24T11:48:15.93+00:00

Hello Team,

I am running this script:

GRANT USAGE, SELECT ON SCHEMA silver TO ******@xyz.com

And getting this error:

org.apache.spark.SparkException: Trying to perform permission action on Hive Metastore /CATALOG/hive_metastore/DATABASE/silver but Table Access Control is not enabled on this cluster.

Please advise me how it can be enabled.

Regards

Rohit

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

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-01-31T06:44:27.0666667+00:00

    Hello @Rohit Kulkarni

    Thanks for the question and using MS Q&A platform.

    From the error message it looks like table access is not enabled on the cluster which you are using.

    This article - Enable table access control for a cluster describes how to enable table access control for a cluster.

    For information about how to set privileges on a data object once table access control has been enabled on a cluster, see Data object privileges.

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


    Please don’t forget to Accept Answer wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Chandra Doredla 30 Reputation points
    2023-05-12T04:28:01.8366667+00:00

    Hi @PRADEEPCHEEKATLA

    Even I had the same issue,(Method public boolean org.apache.spark.sql.internal.CatalogImpl.databaseExists(java.lang.String) is not whitelisted on class class org.apache.spark.sql.internal.CatalogImpl)

    Can you please suggest any solution on this.

    but enabling the below controls, did not overcome the issue. User's image


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.