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

    https://github.com/apache/spark/pull/14959#discussion_r77697522
  
    --- Diff: python/pyspark/conf.py ---
    @@ -101,13 +101,31 @@ def __init__(self, loadDefaults=True, _jvm=None, 
_jconf=None):
                 self._jconf = _jconf
             else:
                 from pyspark.context import SparkContext
    -            SparkContext._ensure_initialized()
    --- End diff --
    
    Just a thought, would it be possible to just add the `--conf` args to the 
env variable before this is called if the jvm hasn't been created yet?  Then 
you wouldn't need to propagate the confs all the way through to 
`launch_gateway`.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to