GitHub user MattWhelan opened a pull request:
https://github.com/apache/spark/pull/4165
SPARK-5358: Rework the classloader impelementation.
The fundamental issue is that you can't change the delegation scheme
without overriding loadClass (rather than findClass). And, if you
override loadClass, you kind of have to do it in Java, because you need
a static initializer call to register yourself as parallel-capable.
Note that the current PR changes the Java dep to 1.7. That's necessary for
the current implementation of GreedyClassLoader. 1.7 adds a fix to a
long-standing deadlock issue with classloaders that don't follow the default
delegation model. Basically, locking is now fine-grained, which is good.
That said, if requiring 1.7 is perceived to be a big problem, then I can
strip out that code and submit a 1.6 solution.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MattWhelan/spark greedyClassloader
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4165.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 #4165
----
commit bc15951f649233269949833e8daebc51535ba966
Author: Matt Whelan <[email protected]>
Date: 2015-01-22T20:01:48Z
SPARK-5358: Rework the classloader impelementation.
The fundamental issue is that you can't change the delegation scheme
without overriding loadClass (rather than findClass). And, if you
override loadClass, you kind of have to do it in Java, because you need
a static initializer call to register yourself as parallel-capable.
----
---
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]