{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4258","labels_url":"https://api.github.com/repos/apache/spark/issues/4258/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4258/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4258/events","html_url":"https://github.com/apache/spark/pull/4258","id":55847796,"number":4258,"title":"[SPARK-5470][Core]use defaultClassLoader to load classes in KryoSerializer","user":{"login":"lianhuiwang","id":545478,"avatar_url":"https://avatars.githubusercontent.com/u/545478?v=3","gravatar_id":"","url":"https://api.github.com/users/lianhuiwang","html_url":"https://github.com/lianhuiwang","followers_url":"https://api.github.com/users/lianhuiwang/followers","following_url":"https://api.github.com/users/lianhuiwang/following{/other_user}","gists_url":"https://api.github.com/users/lianhuiwang/gists{/gist_id}","starred_url":"https://api.github.com/users/lianhuiwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianhuiwang/subscriptions","organizations_url":"https://api.github.com/users/lianhuiwang/orgs","repos_url":"https://api.github.com/users/lianhuiwang/repos","events_url":"https://api.github.com/users/lianhuiwang/events{/privacy}","received_events_url":"https://api.github.com/users/lianhuiwang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T02:29:36Z","updated_at":"2015-01-29T02:32:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4258","html_url":"https://github.com/apache/spark/pull/4258","diff_url":"https://github.com/apache/spark/pull/4258.diff","patch_url":"https://github.com/apache/spark/pull/4258.patch"},"body":"Now KryoSerializer load classes of classesToRegister at the time of its initialization. when we set spark.kryo.classesToRegister=class1, it will throw SparkException(\"Failed to load class to register with Kryo\".\r\nbecause in KryoSerializer's initialization, classLoader cannot include class of user's jars.\r\nwe need to use defaultClassLoader of Serializer in newKryo(), because executor will reset defaultClassLoader of Serializer after Serializer's initialization."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/71958741","html_url":"https://github.com/apache/spark/pull/4258#issuecomment-71958741","issue_url":"https://api.github.com/repos/apache/spark/issues/4258","id":71958741,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T02:32:46Z","updated_at":"2015-01-29T02:32:46Z","body":"  [Test build #26281 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26281/consoleFull) for   PR 4258 at commit [`64cf306`](https://github.com/apache/spark/commit/64cf3069457de9ba303faa0018a82ac3ec5eb6a0).\n * This patch merges cleanly."}}