Github user dragos commented on the pull request:
https://github.com/apache/spark/pull/9282#issuecomment-151530146
There's no clear answer, unfortunately. The serializer has a "default class
loader" that is set explicitly only when using the REPL. In the other cases
it's done through the context class loader, for example in
[SparkSubmit](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L636).
In the coarse-grained mode there seems to be some explicit class loader
handling, but in the debugger I noticed it's due to another context class
loader (seems to be set by a Hadoop class via `runAsSparkUser`).
---
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]