You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/07/30 09:26:00 UTC

[jira] [Resolved] (SPARK-28559) when execute "create table" on ThriftServer ,the hive table owner is wrong

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

Hyukjin Kwon resolved SPARK-28559.
----------------------------------
    Resolution: Duplicate

> when execute "create table" on ThriftServer   ,the hive table owner is wrong
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-28559
>                 URL: https://issues.apache.org/jira/browse/SPARK-28559
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.1
>            Reporter: yibo hu
>            Priority: Major
>
> 1.start spark thrift server by user hive
> 2.Use beeline to connect to the thrift server.
> 3.Login by user named 'user0'
> 4.Execute 'create table test_table  as .......'
> 5.The onwer of test_table in hive metastore is 'hive' but not 'user0'.
>  
> All the sparkSessions share the single HiveClientImpl instance. The field userName in HiveClientImpl is also shared. So the hive table is not attach to the login user.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org