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 03:16:00 UTC
[jira] [Created] (SPARK-37762) Close SessonState when each hive request done
angerszhu created SPARK-37762:
---------------------------------
Summary: 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
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