You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Mohit Sabharwal (JIRA)" <ji...@apache.org> on 2016/09/27 17:48:20 UTC
[jira] [Commented] (HIVE-14100) current_user() returns invalid
information
[ https://issues.apache.org/jira/browse/HIVE-14100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526902#comment-15526902 ]
Mohit Sabharwal commented on HIVE-14100:
----------------------------------------
Thanks, [~pvary]!
Could you fix the description to say SessionStateUserAuthenticator instead of SessionStateAuthenticator ?
Also, I'm confused here, isn't the SessionStateUserAuthenticator authenticator passed as the {{hive.security.authenticator.manager}} config when HS2 is started in hiveServer2.cmd ? HIVE-9143 is getting the user from SessionState.getUserFromAuthenticator, so isn't that udf already using SessionStateUserAuthenticator ?
> current_user() returns invalid information
> ------------------------------------------
>
> Key: HIVE-14100
> URL: https://issues.apache.org/jira/browse/HIVE-14100
> Project: Hive
> Issue Type: Bug
> Components: Authentication, Beeline
> Reporter: Peter Vary
> Assignee: Peter Vary
> Priority: Minor
> Attachments: HIVE-14100.2.patch, HIVE-14100.patch
>
>
> Using HadoopDeaultAuthenticator the current_user() returns the username of the unix user running hiveservice2.
> Using SessionStateAuthenticator the current_user returns the username which is provided when the connection started.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)