[ https://issues.apache.org/jira/browse/HIVE-6478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907790#comment-13907790 ]
Thejas M Nair edited comment on HIVE-6478 at 2/21/14 1:15 AM: -------------------------------------------------------------- There are two changes 1. Pass username when SessionState is created from HiveSessionImpl. 2. Pass HiveConf from SessionManager to HiveSessionImplwithUGI/HiveSessionImpl, and in HiveSessionImplwithUGI/HiveSessionImpl to create a HiveConf that is a copy of the passed HiveConf. This was made to be able to test the SQL std auth with HS2 properly. This will help in general with testing and with embedded HS2, as you want to be able to set the default configuration for a session. This is not an issue with standalone HS2 as HiveSessionImpl as both HS2 configuration and HiveSessionImpl would pick conf from hive-site.xml . See the new TestMiniHS2 test for example of use case. was (Author: thejas): There are two changes 1. Pass username when SessionState is created 2. Pass HiveConf from SessionManager to HiveSessionImplwithUGI/HiveSessionImpl, and in HiveSessionImplwithUGI/HiveSessionImpl to create a HiveConf that is a copy of the passed HiveConf. This was made to be able to test the SQL std auth with HS2 properly. This will help in general with testing and with embedded HS2, as you want to be able to set the default configuration for a session. This is not an issue with standalone HS2 as HiveSessionImpl as both HS2 configuration and HiveSessionImpl would pick conf from hive-site.xml . See the new TestMiniHS2 test for example of use case. > SQL std auth - pass username from hiveserver2 to sessionstate > ------------------------------------------------------------- > > Key: HIVE-6478 > URL: https://issues.apache.org/jira/browse/HIVE-6478 > Project: Hive > Issue Type: Sub-task > Components: Authorization > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Attachments: HIVE-6478.1.patch > > > The username of the user of hiveserver2 client should be passed to > SessionState, to be used by SQL Standard authorization. -- This message was sent by Atlassian JIRA (v6.1.5#6160)