-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor the lifecycle control of flink application mode -dosubmit #2994
Refactor the lifecycle control of flink application mode -dosubmit #2994
Conversation
…ication-mode_dosubmit
…k_application-mode_
…f_Flink_application-mode_' into Refactor_the_lifecycle_control_of_Flink_application-mode_
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
cc @Al-assad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this part of the code doesn't actually call FlinkOperator.deployApplicationJob, which calls V2, and the actual runtime logic is still V1's job submission code
// clusterClient = clusterDescriptor | ||
// .deployApplicationCluster(clusterSpecification, applicationConfig) | ||
// .getClusterClient | ||
FlinkK8sOperator.deployApplicationJob(submitRequest.id, spec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FlinkK8sOperator.deployApplicationJob is an IO strucuture, need to invoke .runIO to run it actually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Al-assad This module calls deployApplicationJob api and reports an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Al-assad At present, it seems that the client module will throw an exception when calling the FlinkK8sOperator.deployApplication Job(submit Request.id, spec) API.
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
…k_application-mode_
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
@@ -62,14 +67,16 @@ object KubernetesNativeApplicationClient extends KubernetesNativeClientTrait { | |||
var clusterDescriptor: KubernetesClusterDescriptor = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Al-assad Hello, thank you for your review, I think this piece is deleted again when the code is finished
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
cc @wolfboys |
cc @Al-assad |
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
...c/main/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient.scala
Outdated
Show resolved
Hide resolved
cc @Al-assad |
@Al-assad The response returns some null values for the time being, and it will be improved after discussing with people in the community |
...ain/scala/org/apache/streampark/flink/client/impl/KubernetesNativeApplicationClient_V2.scala
Outdated
Show resolved
Hide resolved
cc @Al-assad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there are still some issues, I will submit a correction PR later.
What changes were proposed in this pull request
Issue Number: close #xxx
Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
KubernetesNativeApplicationClient.doSubmit 适配到 FlinkOperator. deployApplicationJob;
(or)
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts