You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zhihua Deng (Jira)" <ji...@apache.org> on 2025/07/04 01:30:00 UTC

[jira] [Resolved] (HIVE-28736) Remove DFS_URI authorization in HMS for CREATE_TABLE event with no explicit LOCATION

     [ https://issues.apache.org/jira/browse/HIVE-28736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihua Deng resolved HIVE-28736.
--------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

> Remove DFS_URI authorization in HMS for CREATE_TABLE event with no explicit LOCATION 
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-28736
>                 URL: https://issues.apache.org/jira/browse/HIVE-28736
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Riju Trivedi
>            Assignee: Riju Trivedi
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> When the table is created through HMS - e.g. directly via API or via Spark-SQL - the HMS Authorizer of the CREATE_TABLE event involves URL (DFS_URI) Authorization even when explicit location is not specified. This is not consistent with Hiveserver2 authorization during the Create table.
> {noformat}
> scala> spark.sql("CREATE TABLE default.loctest2 (id int, txt string)")
> org.apache.spark.sql.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Permission denied: user [cdpuser1] does not have [READ] privilege on [[hdfs://jkovacs7217-3.jkovacs7217.root.hwx.site:8020/warehouse/tablespace/external/hive/loctest2, hdfs://jkovacs7217-3.jkovacs7217.root.hwx.site:8020/warehouse/tablespace/external/hive/loctest2/]])
>   at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:110)
>   at org.apache.spark.sql.hive.HiveExternalCatalog.createTable(HiveExternalCatalog.scala:244)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)