wangzhigang1999 commented on code in PR #7831:
URL: https://github.com/apache/kyuubi/pull/7831#discussion_r4452341251
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/JpsApplicationOperation.scala:
##########
@@ -44,7 +44,7 @@ class JpsApplicationOperation extends ApplicationOperation {
override def isSupported(appMgrInfo: ApplicationManagerInfo): Boolean = {
runner != null &&
- (appMgrInfo.resourceManager.isEmpty || appMgrInfo.resourceManager.get ==
"local")
+
appMgrInfo.resourceManager.forall(_.matches("""local(\[([0-9]+|\*)(\s*,\s*[0-9]+)?\])?"""))
Review Comment:
Thanks for the pointer. In 18a373a5c, I split the inline regex into
`LOCAL_N_REGEX` for `local[N]` and `LOCAL_N_FAILURES_REGEX` for `local[N,F]`,
following Spark’s definitions. Both patterns also accept `*` for the thread
count.
--
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]