[
https://issues.apache.org/jira/browse/SPARK-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185953#comment-14185953
]
Apache Spark commented on SPARK-4103:
-------------------------------------
User 'zhzhan' has created a pull request for this issue:
https://github.com/apache/spark/pull/2967
> Clean up SessionState in HiveContext
> ------------------------------------
>
> Key: SPARK-4103
> URL: https://issues.apache.org/jira/browse/SPARK-4103
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Zhan Zhang
> Original Estimate: 12h
> Remaining Estimate: 12h
>
> Currently the sessionState in HiveContext is lazy, and to start the session,
> SessionState.start() has to be invoked to initialize it. Using ThreadLocal
> variable natively in hive to track the availability of SessionState and
> initialize it if required. It avoid multiple thread share the same
> SessionState and single thread invoke SessionState.start with the same
> SessionState multiple times, which seems to cause unexpected behavior.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]