You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "zwangsheng (via GitHub)" <gi...@apache.org> on 2023/03/07 07:47:31 UTC
[GitHub] [kyuubi] zwangsheng opened a new pull request, #4469: [KYUUBI #4467] KubernetesApplicationOperation Wait if not fount drive…
zwangsheng opened a new pull request, #4469:
URL: https://github.com/apache/kyuubi/pull/4469
…r pod in limit time range
<!--
Thanks for sending a pull request!
Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/CONTRIBUTING.html
2. If the PR is related to an issue in https://github.com/apache/kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
-->
### _Why are the changes needed?_
<!--
Please clarify why the changes are needed. For instance,
1. If you add a feature, you can talk about the use case of it.
2. If you fix a bug, you can clarify why it is a bug.
-->
1. Remove `KubernetesApplicationOperation`'s `JpsApplicationOperation` for handle Client Deploy Mode(`YarnApplicationOperation` doesn't handle this either)
2. Add engine submit timeout for `KubernetesApplicationOperation` to return Unknown status when not found driver pod in time range.
3. GetApplicationInfo with it's submit time
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
--
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
[GitHub] [kyuubi] zwangsheng commented on pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#issuecomment-1461359191
In view of the associated Batch, cc @turboFei @pan3793
--
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
[GitHub] [kyuubi] ulysses-you commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1130774808
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,23 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
+ case Some(time) =>
+ val elapsedTime = System.currentTimeMillis() - time
+ if (elapsedTime > submitTimeout) {
+ error(s"Can't find target driver pod with tag: $tag, " +
+ s"has elapsed time: ${elapsedTime}ms (limit timeout: ${submitTimeout}ms), " +
+ s"to submit time: ${submitTimeout}ms")
Review Comment:
this line seems unnecessary ?
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
can we add a new method with the default implementation ?
```scala
def getApplicationInfoByTag(tag: String, submitTime: Long) = getApplicationInfoByTag(tag)
```
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134808891
##########
integration-tests/kyuubi-kubernetes-it/src/test/scala/org/apache/kyuubi/kubernetes/test/spark/SparkOnKubernetesTestsSuite.scala:
##########
@@ -147,23 +147,13 @@ class KyuubiOperationKubernetesClusterClientModeSuite
batchRequest.getConf.asScala.toMap,
batchRequest)
- eventually(timeout(3.minutes), interval(50.milliseconds)) {
+ // [KYUUBI #4467] KubernetesApplicationOperator doesn't support client mode
+ eventually(timeout(1.minutes), interval(50.milliseconds)) {
Review Comment:
As we discussed before, let's just ignore this test case, and restore it after fixing K8s client mode.
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1133882337
##########
docs/deployment/settings.md:
##########
@@ -160,6 +160,7 @@ You can configure the Kyuubi properties in `$KYUUBI_HOME/conf/kyuubi-defaults.co
| kyuubi.engine.spark.python.env.archive | <undefined> | Portable Python env archive used for Spark engine Python language mode. | string | 1.7.0 |
| kyuubi.engine.spark.python.env.archive.exec.path | bin/python | The Python exec path under the Python env archive. | string | 1.7.0 |
| kyuubi.engine.spark.python.home.archive | <undefined> | Spark archive containing $SPARK_HOME/python directory, which is used to init session Python worker for Python language mode. | string | 1.7.0 |
+| kyuubi.engine.submit.timeout | PT30S | The timeout for submitting engine | duration | 1.8.0 |
Review Comment:
```suggestion
| kyuubi.engine.submit.timeout | PT30S | The timeout for submitting engine | duration | 1.7.1 |
```
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1130405855
##########
integration-tests/kyuubi-kubernetes-it/src/test/scala/org/apache/kyuubi/kubernetes/test/spark/SparkOnKubernetesTestsSuite.scala:
##########
@@ -147,23 +147,13 @@ class KyuubiOperationKubernetesClusterClientModeSuite
batchRequest.getConf.asScala.toMap,
batchRequest)
- eventually(timeout(3.minutes), interval(50.milliseconds)) {
+ // [KYUUBI #4467] KubernetesApplicationOperator don't support client mode
Review Comment:
don't => doesn't
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2531,6 +2531,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine")
+ .version("1.8.0")
Review Comment:
it's kind of bug fix, should be 1.7.1
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1135005970
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2531,6 +2531,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine")
Review Comment:
Sure
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2531,6 +2531,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine")
Review Comment:
Added
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134812782
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
compared two approaches, this one is clean and does not touch many things
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134838483
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
+ case Some(time) =>
+ val elapsedTime = System.currentTimeMillis() - time
+ if (elapsedTime > submitTimeout) {
+ error(s"Can't find target driver pod with tag: $tag, " +
+ s"has elapsed time: ${elapsedTime}ms (limit timeout: ${submitTimeout}ms)")
Review Comment:
```suggestion
error(s"Can't find target driver pod by tag: $tag, " +
s"elapsed time: ${elapsedTime}ms exceeds ${submitTimeout}ms.")
```
--
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
[GitHub] [kyuubi] ulysses-you commented on pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#issuecomment-1461554069
do you mean after this pr, we can not support get app info with spark on k8s with client mode ? can we check the deploy mode instead ? if it is cluster mode, get app info from k8s. If it is client client mode, get app info from jps.
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131837604
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
I don't quite understand what you mean ?
Should we using
```scala
def getApplicationInfoByTag(tag: String): ApplicationInfo = getApplicationInfoByTag(tag, None)
```
to support default implementation?
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134811436
##########
integration-tests/kyuubi-kubernetes-it/src/test/scala/org/apache/kyuubi/kubernetes/test/spark/SparkOnKubernetesTestsSuite.scala:
##########
@@ -147,23 +147,13 @@ class KyuubiOperationKubernetesClusterClientModeSuite
batchRequest.getConf.asScala.toMap,
batchRequest)
- eventually(timeout(3.minutes), interval(50.milliseconds)) {
+ // [KYUUBI #4467] KubernetesApplicationOperator doesn't support client mode
+ eventually(timeout(1.minutes), interval(50.milliseconds)) {
Review Comment:
Sure
--
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
[GitHub] [kyuubi] pan3793 closed pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
URL: https://github.com/apache/kyuubi/pull/4469
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134839551
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
Review Comment:
for complex logical, we can just `return` in `if` branch, and save an `else` block.
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
Review Comment:
for complex logic, we can just `return` in `if` branch, and save an `else` block.
--
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
[GitHub] [kyuubi] turboFei commented on a diff in pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "turboFei (via GitHub)" <gi...@apache.org>.
turboFei commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134955114
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2531,6 +2531,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine")
Review Comment:
could you add the config scope in the description, seems it is only for k8s.
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134844270
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
Review Comment:
Warn log should also be required by users
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131932578
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
+ case Some(time) =>
+ val elapsedTime = System.currentTimeMillis() - time
+ if (elapsedTime > submitTimeout) {
+ error(s"Can't find target driver pod with tag: $tag, " +
+ s"has elapsed time: ${elapsedTime}ms (limit timeout: ${submitTimeout}ms)")
+ ApplicationInfo(id = null, name = null, ApplicationState.NOT_FOUND)
+ } else {
+ warn("Wait for driver pod to be created, " +
+ s"elapsed time: ${elapsedTime}ms, return UNKNOWN status")
+ ApplicationInfo(id = null, name = null, ApplicationState.UNKNOWN)
Review Comment:
better to use PENDING here, to un-surprise users
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131975183
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
+ case Some(time) =>
+ val elapsedTime = System.currentTimeMillis() - time
+ if (elapsedTime > submitTimeout) {
+ error(s"Can't find target driver pod with tag: $tag, " +
+ s"has elapsed time: ${elapsedTime}ms (limit timeout: ${submitTimeout}ms)")
+ ApplicationInfo(id = null, name = null, ApplicationState.NOT_FOUND)
+ } else {
+ warn("Wait for driver pod to be created, " +
+ s"elapsed time: ${elapsedTime}ms, return UNKNOWN status")
+ ApplicationInfo(id = null, name = null, ApplicationState.UNKNOWN)
Review Comment:
Given that we are already using PENDING to indicate the status of Spark Driver Pod created on Kubernetes, does it give the user the illusion that the driver pod has been submitted successfully?
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1135453641
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2541,6 +2541,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine to kubernetes cluster")
Review Comment:
Period to tolerant Driver Pod ephemerally invisible after submitting. In some Resource Managers, e.g. K8s, the Driver Pod is not invisible immediately after `spark-submit` is returned.
--
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
[GitHub] [kyuubi] pan3793 commented on pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#issuecomment-1468282720
Thanks, merged to master/1.7
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134841668
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -49,6 +48,7 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
}
override def isSupported(clusterManager: Option[String]): Boolean = {
+ // TODO add deploy mode to check whether is supported
Review Comment:
A clear rejection is better than uncontrollable behavior
--
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
[GitHub] [kyuubi] ulysses-you commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131848877
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
you can have two methods:
```scala
def getApplicationInfoByTag(tag: String, submitTime: Long): ApplicationInfo =
getApplicationInfoByTag(tag)
def getApplicationInfoByTag(tag: String): ApplicationInfo
```
--
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
[GitHub] [kyuubi] codecov-commenter commented on pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#issuecomment-1461231899
# [Codecov](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#4469](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (4c96453) into [master](https://codecov.io/gh/apache/kyuubi/commit/dee07f0c21c20354cc0667941dda5a007a6ac03b?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (dee07f0) will **decrease** coverage by `0.02%`.
> The diff coverage is `48.64%`.
> :exclamation: Current head 4c96453 differs from pull request most recent head 4fdcd03. Consider uploading reports for the commit 4fdcd03 to get more accurate results
```diff
@@ Coverage Diff @@
## master #4469 +/- ##
============================================
- Coverage 53.24% 53.23% -0.02%
Complexity 13 13
============================================
Files 569 571 +2
Lines 31182 31279 +97
Branches 4211 4218 +7
============================================
+ Hits 16604 16652 +48
- Misses 12998 13053 +55
+ Partials 1580 1574 -6
```
| [Impacted Files](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...apache/kyuubi/engine/JpsApplicationOperation.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvSnBzQXBwbGljYXRpb25PcGVyYXRpb24uc2NhbGE=) | `77.41% <ø> (ø)` | |
| [...pache/kyuubi/engine/YarnApplicationOperation.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvWWFybkFwcGxpY2F0aW9uT3BlcmF0aW9uLnNjYWxh) | `58.73% <ø> (ø)` | |
| [.../apache/kyuubi/server/api/v1/BatchesResource.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2ZXIvYXBpL3YxL0JhdGNoZXNSZXNvdXJjZS5zY2FsYQ==) | `70.29% <0.00%> (-0.30%)` | :arrow_down: |
| [...kyuubi/engine/KubernetesApplicationOperation.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvS3ViZXJuZXRlc0FwcGxpY2F0aW9uT3BlcmF0aW9uLnNjYWxh) | `18.07% <6.25%> (-4.47%)` | :arrow_down: |
| [...pache/kyuubi/engine/KyuubiApplicationManager.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvS3l1dWJpQXBwbGljYXRpb25NYW5hZ2VyLnNjYWxh) | `80.00% <50.00%> (+0.27%)` | :arrow_up: |
| [...ain/scala/org/apache/kyuubi/engine/EngineRef.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvRW5naW5lUmVmLnNjYWxh) | `71.65% <75.00%> (+0.68%)` | :arrow_up: |
| [...in/scala/org/apache/kyuubi/config/KyuubiConf.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLWNvbW1vbi9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9jb25maWcvS3l1dWJpQ29uZi5zY2FsYQ==) | `97.40% <100.00%> (+0.07%)` | :arrow_up: |
| [...rg/apache/kyuubi/engine/ApplicationOperation.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvQXBwbGljYXRpb25PcGVyYXRpb24uc2NhbGE=) | `75.00% <100.00%> (+0.92%)` | :arrow_up: |
| [...g/apache/kyuubi/operation/BatchJobSubmission.scala](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9vcGVyYXRpb24vQmF0Y2hKb2JTdWJtaXNzaW9uLnNjYWxh) | `78.19% <100.00%> (+2.91%)` | :arrow_up: |
| [...client/exception/RetryableKyuubiRestException.java](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXJlc3QtY2xpZW50L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9reXV1YmkvY2xpZW50L2V4Y2VwdGlvbi9SZXRyeWFibGVLeXV1YmlSZXN0RXhjZXB0aW9uLmphdmE=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: |
| ... and [21 more](https://codecov.io/gh/apache/kyuubi/pull/4469?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131931818
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -101,8 +102,22 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
debug(s"Successfully got application info by $tag: $info")
info
} else {
- // client mode
- jpsOperation.getApplicationInfoByTag(tag)
+ // Kyuubi should wait second if pod is not be created
+ submitTime match {
+ case Some(time) =>
+ val elapsedTime = System.currentTimeMillis() - time
+ if (elapsedTime > submitTimeout) {
+ error(s"Can't find target driver pod with tag: $tag, " +
+ s"has elapsed time: ${elapsedTime}ms (limit timeout: ${submitTimeout}ms)")
+ ApplicationInfo(id = null, name = null, ApplicationState.NOT_FOUND)
+ } else {
+ warn("Wait for driver pod to be created, " +
+ s"elapsed time: ${elapsedTime}ms, return UNKNOWN status")
+ ApplicationInfo(id = null, name = null, ApplicationState.UNKNOWN)
Review Comment:
We should use PENDING here, since UNKNOWN is kind of Terminated status, see `ApplicationState.isTerminated`
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131885377
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
Fixed.
Avoid modifications to other operations that don't require engine submit time.
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1131837604
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ApplicationOperation.scala:
##########
@@ -58,7 +58,7 @@ trait ApplicationOperation {
* @param tag the unique application tag for engine instance.
* @return [[ApplicationInfo]]
*/
- def getApplicationInfoByTag(tag: String): ApplicationInfo
+ def getApplicationInfoByTag(tag: String, submitTime: Option[Long] = None): ApplicationInfo
Review Comment:
I don't quite understand what you mean by using
```scala
def getApplicationInfoByTag(tag: String): ApplicationInfo = getApplicationInfoByTag(tag, None)
```
to support default implementation?
--
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
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134834650
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -49,6 +48,7 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
}
override def isSupported(clusterManager: Option[String]): Boolean = {
+ // TODO add deploy mode to check whether is supported
Review Comment:
IMO we should deny client mode, although this is a kind of temporary regression
--
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
[GitHub] [kyuubi] zwangsheng commented on pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#issuecomment-1461585641
> do you mean after this pr, we can not support get app info with spark on k8s with client mode ? can we check the deploy mode instead ? if it is cluster mode, get app info from k8s. If it is client client mode, get app info from jps.
Given that `YarnApplicationOperation` has no aspect capabilities, this is ranked as a FEATURE as you described.
Will make a following PR to add deploy-mode check
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][Batch] Get k8s app info with unknown when driver pod not found in limit time range
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1134839860
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala:
##########
@@ -49,6 +48,7 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
}
override def isSupported(clusterManager: Option[String]): Boolean = {
+ // TODO add deploy mode to check whether is supported
Review Comment:
Here just a TODO notice, put comments here for notify developers.
I'll make a follow up PR to let `JpsApplicationOperator` support client mode.
--
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
[GitHub] [kyuubi] zwangsheng commented on a diff in pull request #4469: [KYUUBI #4467][K8S][BATCH] Tolerate Driver Pod ephemerally invisible after submitting
Posted by "zwangsheng (via GitHub)" <gi...@apache.org>.
zwangsheng commented on code in PR #4469:
URL: https://github.com/apache/kyuubi/pull/4469#discussion_r1135474090
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala:
##########
@@ -2541,6 +2541,13 @@ object KyuubiConf {
.booleanConf
.createWithDefault(true)
+ val ENGINE_SUBMIT_TIMEOUT: ConfigEntry[Long] =
+ buildConf("kyuubi.engine.submit.timeout")
+ .doc("The timeout for submitting engine to kubernetes cluster")
Review Comment:
Modified.
--
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