[ https://issues.apache.org/jira/browse/HIVE-28716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-28716: ---------------------------------- Labels: pull-request-available (was: ) > 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 > Labels: pull-request-available > Attachments: create_db_HS2_stacktrace.txt, create_db_intelliJ.png, > create_table_HS2_stacktrace.txt, create_table_intelliJ.png > > > 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)