[ https://issues.apache.org/jira/browse/HIVE-14100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15530478#comment-15530478 ]
Mohit Sabharwal commented on HIVE-14100: ---------------------------------------- Thanks [~pvary]], sounds good! Your patch is getting user name from {{SessionState.get().getUserName()}} HIVE-9143 is getting user name from {{SessionState.getUserFromAuthenticator()}} which calls {{SessionStateUserAuthenticator.getUserName()}} which calls the {{sessionState.getUserName()}} (same as your patch). Just to confirm, you're saying that *if* SessionStateUserAuthenticator is the not the default (which it is, in {{hiveServer2.cmd}} file ), then other HiveAuthenticationProviders (like say HadoopDefaultAuthenticator), may return user that runs the hiveserver2 process ? > 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.2.patch, > HIVE-14100.2.patch, HIVE-14100.patch > > > Using HadoopDeaultAuthenticator the current_user() returns the username of > the unix user running hiveservice2. > Using SessionStateUserAuthenticator the current_user returns the username > which is provided when the connection started. -- This message was sent by Atlassian JIRA (v6.3.4#6332)