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 <1003540...@qq.com>
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to