You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zizon (JIRA)" <ji...@apache.org> on 2011/06/05 13:44:47 UTC

[jira] [Created] (HIVE-2197) SessionState used before ThreadLocal set

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

[jira] [Resolved] (HIVE-2197) SessionState used before ThreadLocal set

Posted by "Ashutosh Chauhan (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan resolved HIVE-2197.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.0

This no longer true in trunk.
                
> 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
>             Fix For: 0.9.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira