[ 
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)

Reply via email to