Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/15#issuecomment-38650197
  
    Ya okay I think my suspicion was correct. I made the following modification 
to `createClassLoader` and I was able to fix this bug:
    ```
    private def createClassLoader(): ExecutorURLClassLoader = {
    -    val loader = this.getClass.getClassLoader
    +    val loader = Thread.currentThread().getContextClassLoader
    ```
    
    The problem is that it delegated to the classloader which created the 
current class. Instead it should delegate to the classloader that is currently 
active in the present thread.


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

Reply via email to