{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5501","labels_url":"https://api.github.com/repos/apache/spark/issues/5501/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5501/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5501/events","html_url":"https://github.com/apache/spark/pull/5501","id":68222392,"number":5501,"title":"[SPARK-6703][Core] Provide a way to discover existing SparkContext's","user":{"login":"ilganeli","id":1483345,"avatar_url":"https://avatars.githubusercontent.com/u/1483345?v=3","gravatar_id":"","url":"https://api.github.com/users/ilganeli","html_url":"https://github.com/ilganeli","followers_url":"https://api.github.com/users/ilganeli/followers","following_url":"https://api.github.com/users/ilganeli/following{/other_user}","gists_url":"https://api.github.com/users/ilganeli/gists{/gist_id}","starred_url":"https://api.github.com/users/ilganeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilganeli/subscriptions","organizations_url":"https://api.github.com/users/ilganeli/orgs","repos_url":"https://api.github.com/users/ilganeli/repos","events_url":"https://api.github.com/users/ilganeli/events{/privacy}","received_events_url":"https://api.github.com/users/ilganeli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-13T23:53:43Z","updated_at":"2015-04-14T17:30:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5501","html_url":"https://github.com/apache/spark/pull/5501","diff_url":"https://github.com/apache/spark/pull/5501.diff","patch_url":"https://github.com/apache/spark/pull/5501.patch"},"body":"I've added a static getOrCreate method to the static SparkContext object that allows one to either retrieve a previously created SparkContext or to instantiate a new one with the provided config. The method accepts an optional SparkConf to make usage intuitive. \r\n\r\nStill working on a test for this, basically want to create a new context from scratch, then ensure that subsequent calls don't overwrite that. "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/92990066","html_url":"https://github.com/apache/spark/pull/5501#issuecomment-92990066","issue_url":"https://api.github.com/repos/apache/spark/issues/5501","id":92990066,"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":"2015-04-14T17:30:36Z","updated_at":"2015-04-14T17:30:36Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30256/\nTest FAILed."}}