You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Chaoyu Tang (JIRA)" <ji...@apache.org> on 2015/07/01 05:04:04 UTC
[jira] [Updated] (HIVE-11157) Hive.get(HiveConf) returns same Hive
object to different user sessions
[ https://issues.apache.org/jira/browse/HIVE-11157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chaoyu Tang updated HIVE-11157:
-------------------------------
Attachment: HIVE-11157.patch
A quite straightforward patch which adds the check of session owner in Hive.get(HiveConf).
> Hive.get(HiveConf) returns same Hive object to different user sessions
> ----------------------------------------------------------------------
>
> Key: HIVE-11157
> URL: https://issues.apache.org/jira/browse/HIVE-11157
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 1.3.0, 2.0.0
> Reporter: Chaoyu Tang
> Assignee: Chaoyu Tang
> Attachments: HIVE-11157.patch
>
>
> Current Hive.get(HiveConf) creates and returns a new Hive object when the ThreadLocal Hive is null or HMS config is not compatible, but does not do that when it is called in a thread which has been switched to execute a session with a different userId. It will cause the impersonation issue to HMS.
> It is related to HIVE-7890.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)