Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-11114] [PYSPARK] add getOrCreate for SparkContext/SQLContext in Python #9122

Closed
wants to merge 3 commits into from

Conversation

davies
Copy link
Contributor

@davies davies commented Oct 14, 2015

Also added SQLContext.newSession()

@SparkQA
Copy link

SparkQA commented Oct 14, 2015

Test build #43741 has finished for PR 9122 at commit e5a2437.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 14, 2015

Test build #1902 has finished for PR 9122 at commit e5a2437.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 15, 2015

Test build #43755 has finished for PR 9122 at commit f92cd43.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.


:param conf: SparkConf (optional)
"""
if SparkContext._active_spark_context is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you need to hold SparkContext._lock when you check for this?

@SparkQA
Copy link

SparkQA commented Oct 16, 2015

Test build #43847 has finished for PR 9122 at commit f272ddc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

LGTM merging into master. Thanks @davies!

@asfgit asfgit closed this in 232d7f8 Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants