{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15377","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15377/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15377/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15377/events","html_url":"https://github.com/apache/spark/pull/15377","id":181348321,"number":15377,"title":"[SPARK-17802] Improved caller context logging.","user":{"login":"lins05","id":717363,"avatar_url":"https://avatars.githubusercontent.com/u/717363?v=3","gravatar_id":"","url":"https://api.github.com/users/lins05","html_url":"https://github.com/lins05","followers_url":"https://api.github.com/users/lins05/followers","following_url":"https://api.github.com/users/lins05/following{/other_user}","gists_url":"https://api.github.com/users/lins05/gists{/gist_id}","starred_url":"https://api.github.com/users/lins05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lins05/subscriptions","organizations_url":"https://api.github.com/users/lins05/orgs","repos_url":"https://api.github.com/users/lins05/repos","events_url":"https://api.github.com/users/lins05/events{/privacy}","received_events_url":"https://api.github.com/users/lins05/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-10-06T08:02:32Z","updated_at":"2016-10-13T14:52:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15377","html_url":"https://github.com/apache/spark/pull/15377","diff_url":"https://github.com/apache/spark/pull/15377.diff","patch_url":"https://github.com/apache/spark/pull/15377.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n[SPARK-16757](https://issues.apache.org/jira/browse/SPARK-16757) sets the hadoop `CallerContext` when calling hadoop/hdfs apis to make spark applications more diagnosable in hadoop/hdfs logs. However, the `org.apache.hadoop.ipc.CallerContext` class is only added since [hadoop 2.8](https://issues.apache.org/jira/browse/HDFS-9184), which is not officially releaed yet. So each time `utils.CallerContext.setCurrentContext()` is called (e.g [when a task is created](https://github.com/apache/spark/blob/b678e46/core/src/main/scala/org/apache/spark/scheduler/Task.scala#L95-L96)), a \"java.lang.ClassNotFoundException: org.apache.hadoop.ipc.CallerContext\"\r\nerror is logged, which pollutes the spark logs when there are lots of tasks.\r\n\r\nThis patch improves this behaviour by only logging the `ClassNotFoundException` once.\r\n\r\n## How was this patch tested?\r\n\r\nExisting tests.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/253536744","html_url":"https://github.com/apache/spark/pull/15377#issuecomment-253536744","issue_url":"https://api.github.com/repos/apache/spark/issues/15377","id":253536744,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T14:52:17Z","updated_at":"2016-10-13T14:52:17Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/66891/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}