Github user BryanCutler commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14959#discussion_r82649091
  
    --- Diff: python/pyspark/context.py ---
    @@ -121,7 +121,15 @@ def __init__(self, master=None, appName=None, 
sparkHome=None, pyFiles=None,
         def _do_init(self, master, appName, sparkHome, pyFiles, environment, 
batchSize, serializer,
                      conf, jsc, profiler_cls):
             self.environment = environment or {}
    -        self._conf = conf or SparkConf(_jvm=self._jvm)
    +        # java gateway must have been launched at this point.
    +        if conf is not None and conf._jconf:
    --- End diff --
    
    Maybe also change this to `and conf._jconf is not None`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to