Github user ueshin commented on the pull request:

    https://github.com/apache/spark/pull/322#issuecomment-39543185
  
    Hi,
    I think `MesosExecutorBackend` should have own `ContextClassLoader` and it 
should be set to the class loader of `MesosExecutorBackend` class before it 
creates `Executor` object.
    
    I mistakenly thought that `MesosExecutorBackend` has own context class 
loader, but it doesn't. While creating `SparkEnv` in the `Executor`'s 
constructor, `Thread.currentThread.getContextClassLoader` returns `null` 
because `MesosExecutorBackend` doesn't have context class loader. 
`Class.forName()` method with `null` for 3rd argument tries to load class from 
bootstrap class loader, which doesn't know the class 
`org.apache.spark.serializer.JavaSerializer`.



---
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.
---

Reply via email to