cxzl25 commented on code in PR #5798:
URL: https://github.com/apache/kyuubi/pull/5798#discussion_r1411959310


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala:
##########
@@ -259,6 +260,15 @@ class SparkProcessBuilder(
     map.result().toMap
   }
 
+  def extraYarnConf: Map[String, String] = {
+    if 
(clusterManager().exists(_.toLowerCase(Locale.ROOT).startsWith("yarn"))) {
+      // set `spark.yarn.maxAppAttempts` to 1 to avoid invalid attempts.
+      Map(YARN_MAX_APP_ATTEMPTS_KEY -> "1")

Review Comment:
   [YARN-5617](https://issues.apache.org/jira/browse/YARN-5617). AMs only 
intended to run one attempt can be run more than once
   
   
   Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2



-- 
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