GitHub user GavinGavinNo1 opened a pull request:
https://github.com/apache/spark/pull/8713
Update IsolatedClientLoader.scala
To resolve problem mentioned in SPARK-10529, I add an attribute of
ThreadLocal<URLClassLoader> type in object IsolatedClientLoader. So, no matter
how many HiveContext objects are created in the same jvm, they use the same
URLClassLoader object. Therefore, no more classes will be loaded and no more
jdbc connections will be created.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/GavinGavinNo1/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8713.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #8713
----
commit 33f46d965e36b147b7c52911c9d998ba40e8ff42
Author: GavinGavinNo1 <[email protected]>
Date: 2015-09-11T06:35:09Z
Update IsolatedClientLoader.scala
To resolve problem mentioned in SPARK-10529, I add an attribute of
ThreadLocal<URLClassLoader> type in object IsolatedClientLoader. So, no matter
how many HiveContext objects are created in the same jvm, they use the same
URLClassLoader object. Therefore, no more classes will be loaded and no more
jdbc connections will be created.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]