-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8306] [SQL] AddJar command needs to set the new class loader to the HiveConf inside executionHive.state. #6758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
hmm..Actually, |
|
Actually, the problem is the class loader associated with the Basically, we use the classloader of the conf associated with the state to set the context class loader of the current thread. Inside Also cc @JoshRosen |
|
Manually tested. Looks fine. Will try to add a test. |
|
Test build #34669 timed out for PR 6758 at commit |
|
Test build #34679 has finished for PR 6758 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very likely to work for almost all cases, but we should probably add a TODO or JIRA to clean up some of this stuff. For instance, here we may be setting the executionHive class loader to an entirely different class loader than it originally had (which is likely to work in typical situations, but is not easy to trace).
Additionally, the flow of class loader-setting inside ClientWrapper is very non-obvious, especially as it differs between Hive 12 and Hive 13 -- we should explicitly document this if not make it cleaner.
…HiveConf inside executionHive.state.
|
Test build #35055 has finished for PR 6758 at commit
|
|
Test build #35057 has finished for PR 6758 at commit
|
…o the HiveConf inside executionHive.state. https://issues.apache.org/jira/browse/SPARK-8306 I will try to add a test later. marmbrus aarondav Author: Yin Huai <[email protected]> Closes #6758 from yhuai/SPARK-8306 and squashes the following commits: 1292346 [Yin Huai] [SPARK-8306] AddJar command needs to set the new class loader to the HiveConf inside executionHive.state. (cherry picked from commit 302556f) Signed-off-by: Michael Armbrust <[email protected]> Conflicts: sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala
…o the HiveConf inside executionHive.state. https://issues.apache.org/jira/browse/SPARK-8306 I will try to add a test later. marmbrus aarondav Author: Yin Huai <[email protected]> Closes apache#6758 from yhuai/SPARK-8306 and squashes the following commits: 1292346 [Yin Huai] [SPARK-8306] AddJar command needs to set the new class loader to the HiveConf inside executionHive.state.
https://issues.apache.org/jira/browse/SPARK-8306
I will try to add a test later.
@marmbrus @aarondav