ulysses-you commented on pull request #31949:
URL: https://github.com/apache/spark/pull/31949#issuecomment-805576540


   > Seems the only line we need is ` 
Thread.currentThread().setContextClassLoader(clientLoader.classLoader)`?
   
   This can cover the exception, but it's better to use `withHiveState` that 
also set the cached `Hive` into shutdown thread. That can avoid hive session 
state re-create an another `Hive` in shutdown thread.


-- 
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]

Reply via email to