{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9282","labels_url":"https://api.github.com/repos/apache/spark/issues/9282/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9282/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9282/events","html_url":"https://github.com/apache/spark/pull/9282","id":113402558,"number":9282,"title":"[SPARK-10986][Mesos] Set the context class loader in the Mesos executor backend.","user":{"login":"dragos","id":133742,"avatar_url":"https://avatars.githubusercontent.com/u/133742?v=3","gravatar_id":"","url":"https://api.github.com/users/dragos","html_url":"https://github.com/dragos","followers_url":"https://api.github.com/users/dragos/followers","following_url":"https://api.github.com/users/dragos/following{/other_user}","gists_url":"https://api.github.com/users/dragos/gists{/gist_id}","starred_url":"https://api.github.com/users/dragos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragos/subscriptions","organizations_url":"https://api.github.com/users/dragos/orgs","repos_url":"https://api.github.com/users/dragos/repos","events_url":"https://api.github.com/users/dragos/events{/privacy}","received_events_url":"https://api.github.com/users/dragos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-26T17:02:04Z","updated_at":"2015-10-26T18:32:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9282","html_url":"https://github.com/apache/spark/pull/9282","diff_url":"https://github.com/apache/spark/pull/9282.diff","patch_url":"https://github.com/apache/spark/pull/9282.patch"},"body":"See [SPARK-10986](https://issues.apache.org/jira/browse/SPARK-10986) for details.\r\n\r\nThis fixes the `ClassNotFoundException` for Spark classes in the serializer.\r\n\r\nI am not sure this is the right way to handle the class loader, but I couldn't find any documentation on how the context class loader is used and who relies on it. It seems at least the serializer uses it to instantiate classes during deserialization.\r\n\r\nI am open to suggestions (I tried this fix on a real Mesos cluster and it *does* fix the issue).\r\n\r\n@tnachen @andrewor14 "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/151240433","html_url":"https://github.com/apache/spark/pull/9282#issuecomment-151240433","issue_url":"https://api.github.com/repos/apache/spark/issues/9282","id":151240433,"user":{"login":"kaysoky","id":1134596,"avatar_url":"https://avatars.githubusercontent.com/u/1134596?v=3","gravatar_id":"","url":"https://api.github.com/users/kaysoky","html_url":"https://github.com/kaysoky","followers_url":"https://api.github.com/users/kaysoky/followers","following_url":"https://api.github.com/users/kaysoky/following{/other_user}","gists_url":"https://api.github.com/users/kaysoky/gists{/gist_id}","starred_url":"https://api.github.com/users/kaysoky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaysoky/subscriptions","organizations_url":"https://api.github.com/users/kaysoky/orgs","repos_url":"https://api.github.com/users/kaysoky/repos","events_url":"https://api.github.com/users/kaysoky/events{/privacy}","received_events_url":"https://api.github.com/users/kaysoky/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T18:32:26Z","updated_at":"2015-10-26T18:32:26Z","body":":+1: \r\n\r\nTested on a local Mesos cluster (fine-grained mode)."}}