[SPARK-10121] [SQL] Thrift server always use the latest class loader provided by the conf of executionHive's state#8368
[SPARK-10121] [SQL] Thrift server always use the latest class loader provided by the conf of executionHive's state#8368yhuai wants to merge 2 commits into
Conversation
|
@liancheng I manually tested it and this looks like a right fix. How to write a unit test? Basically, I need to start the thriftserver and add a jar from another thread (e.g. spark shell) and test it in a jdbc connection. |
|
Test build #41392 has finished for PR 8368 at commit
|
|
Test build #41394 has finished for PR 8368 at commit
|
|
This can be tested using |
|
Test build #41437 has finished for PR 8368 at commit
|
|
LGTM. Merging to master and branch-1.5. |
…provided by the conf of executionHive's state https://issues.apache.org/jira/browse/SPARK-10121 Looks like the problem is that if we add a jar through another thread, the thread handling the JDBC session will not get the latest classloader. Author: Yin Huai <yhuai@databricks.com> Closes #8368 from yhuai/SPARK-10121. (cherry picked from commit a0c0aae) Signed-off-by: Cheng Lian <lian@databricks.com>
https://issues.apache.org/jira/browse/SPARK-10121
Looks like the problem is that if we add a jar through another thread, the thread handling the JDBC session will not get the latest classloader.