AngersZhuuuu commented on a change in pull request #26141:
URL: https://github.com/apache/spark/pull/26141#discussion_r412156053
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
##########
@@ -242,6 +242,10 @@ private[hive] class SparkExecuteStatementOperation(
val executionHiveClassLoader = sqlContext.sharedState.jarClassLoader
Thread.currentThread().setContextClassLoader(executionHiveClassLoader)
Review comment:
> Even in sync mode, we don't use the classloader of the current thread?
In code I mentioned in description, it will use SessionState's HiveConf's
ClassLoader.
That's the problem, when it execute in background thread, it will use
HiveClientImpl 's SessionState, and the corresponding classLoader is
`executionHiveClassLoader`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]