GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/11687
[SPARK-13848][SPARK-5185] Update to Py4J 0.9.2 in order to fix classloading
issue
This patch upgrades Py4J from 0.9.1 to 0.9.2 in order to include a patch
which modifies Py4J to use the current thread's ContextClassLoader when
performing reflection / class loading. This is necessary in order to fix
[SPARK-5185](https://issues.apache.org/jira/browse/SPARK-5185), a longstanding
issue affecting the use of `--jars` and `--packages` in PySpark.
In order to demonstrate that the fix works, I removed the workarounds which
were added as part of
[SPARK-6027](https://issues.apache.org/jira/browse/SPARK-6027) / #4779 and
other patches.
Py4J diff: https://github.com/bartdag/py4j/compare/0.9.1...0.9.2
/cc @zsxwing @tdas @davies @brkyvz
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark py4j-0.9.2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11687.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 #11687
----
commit d21301f69bb6cd6bdc816f0c4ac6d8ea0b47e2ad
Author: Josh Rosen <[email protected]>
Date: 2016-03-13T21:00:42Z
[SPARK-13848] Update to Py4J 0.9.2
commit 40d22cc898a496ed34a48cc939837de2a5da7d11
Author: Josh Rosen <[email protected]>
Date: 2016-03-13T21:40:56Z
[SPARK-5185] Update Py4J tests to demonstate that SPARK-5185 has been fixed.
----
---
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]