You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Werner Labuschagne <we...@gmail.com> on 2024/07/29 10:24:49 UTC

Hive Metastore Standalone Ranger Integration

Hi,

I would like to know if
Hive Metastore Standalone Ranger Integration is possible?
If so is there perhaps a link on more information on this?

Thanks
Werner

Re: Hive Metastore Standalone Ranger Integration

Posted by st...@cybervisiontech.com.
Hi Werner,

I think HMS - Ranger integration has been implemented on Hive side for Hive-4, but not released yet:
Commit: https://github.com/apache/hive/commit/10b6d70da1442cccf533bc97f56a622ec9f39661
Jira: https://issues.apache.org/jira/browse/HIVE-21753

After enabling Hive plugin, you need to add "org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory" as below in hive-site.xml and restart HMS:

  <property>
    <name>hive.security.authorization.manager</name>
    <value>org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory</value>
  </property>

  <property>
    <name>hive.metastore.pre.event.listeners</name>
    <value>org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener,org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer</value>
  </property>

Please note that as Hive-4 is still under development, the functionalities may not work as expected.

Regards,
Sercan

----- Original Message -----
From: "Werner Labuschagne" <we...@gmail.com>
To: "dev" <de...@ranger.apache.org>
Sent: Monday, July 29, 2024 6:24:49 AM
Subject: Hive Metastore Standalone Ranger Integration

Hi,

I would like to know if
Hive Metastore Standalone Ranger Integration is possible?
If so is there perhaps a link on more information on this?

Thanks
Werner