You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "angerszhu (Jira)" <ji...@apache.org> on 2021/12/28 06:32:00 UTC
[jira] [Commented] (SPARK-37762) Close SessonState when each hive request done
[ https://issues.apache.org/jira/browse/SPARK-37762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465965#comment-17465965 ]
angerszhu commented on SPARK-37762:
-----------------------------------
Issue has been resolve in spark-3.2, close this
> Close SessonState when each hive request done
> ---------------------------------------------
>
> Key: SPARK-37762
> URL: https://issues.apache.org/jira/browse/SPARK-37762
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: angerszhu
> Priority: Major
>
> In current code in HiveClientImpl, we only callĀ
> {code}
> shim.setCurrentSessionState(state)
> val ret = try {
> f
> } catch {
> case e: NoClassDefFoundError if e.getMessage.contains("apache/hadoop/hive/serde2/SerDe") =>
> throw QueryExecutionErrors.serDeInterfaceNotFoundError(e)
> } finally {
> state.getConf.setClassLoader(originalConfLoader)
> Thread.currentThread().setContextClassLoader(original)
> }
> ret
> {code}
> This will call SessionState.start() and won't call SessionState.stop()
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org