Github user gaborgsomogyi commented on a diff in the pull request:
https://github.com/apache/spark/pull/20853#discussion_r175523620
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
@@ -245,6 +245,19 @@ object SparkSubmit extends CommandLineUtils with
Logging {
args: SparkSubmitArguments,
conf: Option[HadoopConfiguration] = None)
: (Seq[String], Seq[String], SparkConf, String) = {
+ try {
+ doPrepareSubmitEnvironment(args, conf)
+ } catch {
+ case e: SparkException =>
+ printErrorAndExit(e.getMessage)
+ throw new RuntimeException("Unreachable production code")
--- End diff --
Nit: I have a feeling it's a bit overkill compared to the other occurences.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]