Authorize read access to tables from Spark
You need to configure properties in Cloudera Manager for read authorization to Hive external tables when accessing the tables from Spark.
You add the following properties and values to hive-site.xml for HMS
API-Ranger integration:
- hive.security.authenticator.manager
- Value: org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator
- hive.metastore.pre.event.listeners
- Value: org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
Add properties as described in the next section.