You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/11/26 05:14:19 UTC
[GitHub] [incubator-kyuubi] xuefeimiaoao commented on a diff in pull request #3852: [KYUUBI #3851] [Improvement] Support override of spark.master with ku…
xuefeimiaoao commented on code in PR #3852:
URL: https://github.com/apache/incubator-kyuubi/pull/3852#discussion_r1032739949
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala:
##########
@@ -53,8 +55,30 @@ class SparkProcessBuilder(
Paths.get(sparkHome, "bin", SPARK_SUBMIT_FILE).toFile.getCanonicalPath
}
+ initialize
+
override def mainClass: String = "org.apache.kyuubi.engine.spark.SparkSQLEngine"
+ /**
+ * Add or override spark.master if KUBERNETES_SERVICE_HOST and
+ * KUBERNETES_SERVICE_PORT are defined
+ */
+ protected def initialize(): Unit = {
+ try {
+ if (conf.get(KUBERNETES_MASTER_OVERRIDE)) {
Review Comment:
I agree with your view and complete `spark.master` only in case of its absence.
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org