HyukjinKwon commented on code in PR #50000:
URL: https://github.com/apache/spark/pull/50000#discussion_r1960972127


##########
python/pyspark/sql/session.py:
##########
@@ -508,6 +508,11 @@ def getOrCreate(self) -> "SparkSession":
 
                             if url is None and is_api_mode_connect:
                                 url = opts.get("spark.master", 
os.environ.get("MASTER", "local"))
+                                if url.startswith("sc://"):

Review Comment:
   The problem is that this is Python specific. Spark Connect Server is 
launched without Spark Submit itself. For other cases, the exceptions are 
covered via `SparkSubmit.prepareSubmitEnvironment`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to