You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Raghav Aggarwal (Jira)" <ji...@apache.org> on 2025/01/20 06:51:00 UTC
[jira] [Updated] (HIVE-28716) Add owner information in HivePrivilegeObject for create database query
[ https://issues.apache.org/jira/browse/HIVE-28716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghav Aggarwal updated HIVE-28716:
-----------------------------------
Attachment: create_db_HS2_stacktrace.txt
create_table_HS2_stacktrace.txt
> Add owner information in HivePrivilegeObject for create database query
> ----------------------------------------------------------------------
>
> Key: HIVE-28716
> URL: https://issues.apache.org/jira/browse/HIVE-28716
> Project: Hive
> Issue Type: Task
> Components: Authorization
> Reporter: Raghav Aggarwal
> Assignee: Raghav Aggarwal
> Priority: Major
> Attachments: create_db_HS2_stacktrace.txt, create_table_HS2_stacktrace.txt
>
>
> Running _create database_ or _create table_ query has ERROR stacktrace in HS2 logs due to ranger as follows
> {code:java}
> 2025-01-19T22:34:18,649 ERROR [2bf09ecd-d18b-44d7-a468-e76b20e03d6a HiveServer2-Handler-Pool: Thread-114]: authorizer.RangerHiveAuthorizer (:()) - failed to get database object from Hive metastore. dbName=dbexample
> org.apache.hadoop.hive.metastore.api.NoSuchObjectException: database hive.dbexample {code}
> There is a already a Jira raised in RANGER project as well whose fix is around the similar area: RANGER-5097 Please refer to comments in the Ranger Jira for more info. But even with Ranger fix the _create database_ still throws the ERROR as owner is passed as null from hive to ranger which is not the case in _create table._
> Attaching the stacktrace and IntelliJ debugging screenshot here in the Jira
>
> *NOTE: There is no impact on the functionality, table/db is getting created in hive. It more of a noise in the HS2 logs coming from ranger.*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)