SessionState used before ThreadLocal set
----------------------------------------
Key: HIVE-2197
URL: https://issues.apache.org/jira/browse/HIVE-2197
Project: Hive
Issue Type: Bug
Affects Versions: 0.7.0
Reporter: Zizon
Priority: Minor
while invoke the method like :
SessionState.start(new HiveConf(HiveConf.class))
it comes out following exception stack:
at
org.apache.hadoop.hive.ql.session.CreateTableAutomaticGrant.getGrantorInfoList(CreateTableAutomaticGrant.java:101)
at
org.apache.hadoop.hive.ql.session.CreateTableAutomaticGrant.getGrantMap(CreateTableAutomaticGrant.java:79)
at
org.apache.hadoop.hive.ql.session.CreateTableAutomaticGrant.create(CreateTableAutomaticGrant.java:41)
at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:194)
because the CreateTableAutomaticGrant.getGrantorInfoList will try to get
Authenticator via SessionState.get().getAuthenticator() while the 'tts'(thread
local) is still null(it is being set at line 195 but the invoke happended at
line 194 in SessionState.start(conf) ).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira