Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/14959#discussion_r78105215
--- Diff: python/pyspark/java_gateway.py ---
@@ -51,13 +51,16 @@ def launch_gateway():
on_windows = platform.system() == "Windows"
script = "./bin/spark-submit.cmd" if on_windows else
"./bin/spark-submit"
submit_args = os.environ.get("PYSPARK_SUBMIT_ARGS",
"pyspark-shell")
+ if conf and conf.getAll():
+ submit_args = ' '.join(['--conf %s="%s"' % (k, v) for k, v in
conf.getAll()]) \
--- End diff --
This seems like it could be rather brittle - what happens if a user has a "
inside one of the configuration values?
---
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]