Re: K8s operator - Stop Job with savepoint on session cluster via Java API

2023-09-03 Thread Márton Balassi
Hi Krzysztof, Please set upgradeMode to savepoint and change state from Running to Suspended on your application. This makes it so that you trigger an upgrade (as at least the job state changes) and for the upgrade we explicitly trigger a savepoint as you choose that for the upgrade mode. Importa

Re: K8s operator - Stop Job with savepoint on session cluster via Java API

2023-08-31 Thread Krzysztof Chmielewski
Hi thanks, However what you have send me is sql client. I'm looking for a way to do it via k8s operator's java Api. pt., 1 wrz 2023, 03:58 użytkownik Shammon FY napisał: > Hi Krzysztof, > > For the flink session cluster, you can stop the job with savepoint through > the statement `STOP JOB '{You

Re: K8s operator - Stop Job with savepoint on session cluster via Java API

2023-08-31 Thread Shammon FY
Hi Krzysztof, For the flink session cluster, you can stop the job with savepoint through the statement `STOP JOB '{Your job id}' WITH SAVEPOINT;`. You can refer to [1] for more information about how to do it in sql client and you can also create a table environment to perform the statement in your

K8s operator - Stop Job with savepoint on session cluster via Java API

2023-08-31 Thread Krzysztof Chmielewski
Hi community, I would like to ask what is the recommended way to stop Flink job with save point on a session cluster via k8s operator Java API? Currently I'm doing this by setting savepointTriggerNonce on JobSpec object. However I've noticed that this works only if I do not include Job state chang

Re: stop job with Savepoint

2021-02-24 Thread Arvid Heise
un > *Sent:* Saturday, February 20, 2021 2:10 PM > *To:* Flink User Mail List > *Subject:* stop job with Savepoint > > Hello, > I'm running per job Flink cluster, JM is deployed as Kubernetes Job > with restartPolicy: Never, highavailability is KubernetesHaServicesFactor

Re: stop job with Savepoint

2021-02-20 Thread Alexey Trenikhun
Adding "list" to verbs helps, do I need to add anything else ? From: Alexey Trenikhun Sent: Saturday, February 20, 2021 2:10 PM To: Flink User Mail List Subject: stop job with Savepoint Hello, I'm running per job Flink cluster, JM is deployed as

stop job with Savepoint

2021-02-20 Thread Alexey Trenikhun
Hello, I'm running per job Flink cluster, JM is deployed as Kubernetes Job with restartPolicy: Never, highavailability is KubernetesHaServicesFactory. Job runs fine for some time, configmaps are created etc. Now in order to upgrade Flink job, I'm trying to stop job with savepoint (

Re: Stop job with savepoint during graceful shutdown on a k8s cluster

2020-03-16 Thread Vijay Bhaskar
avoided. For point (2) If the communication breaks across Job manager and task manager during the save point or checkpoint operation, checkpoint/save point will be declined. We can't have them Regards Bhaskar On Sat, Mar 14, 2020 at 4:54 PM shravan wrote: > Our understanding is to stop

Re: Stop job with savepoint during graceful shutdown on a k8s cluster

2020-03-14 Thread shravan
Our understanding is to stop job with savepoint, all the task manager will persist their state during savepoint. If a Task Manager receives a shutdown signal while savepoint is being taken, does it complete the savepoint before shutdown ? [Ans ] Why task manager is shutdown suddenly? Are you

Re: Stop job with savepoint during graceful shutdown on a k8s cluster

2020-03-13 Thread Vijay Bhaskar
Please find answers inline Our understanding is to stop job with savepoint, all the task manager will persist their state during savepoint. If a Task Manager receives a shutdown signal while savepoint is being taken, does it complete the savepoint before shutdown ? [Ans ] Why task manager is

Stop job with savepoint during graceful shutdown on a k8s cluster

2020-03-13 Thread shravan
Flink client pod starts the job with savepoint on restart of client pod. But as the order in which pods will be shutdown is not predictable, we have following queries, 1. Our understanding is to stop job with savepoint, all the task manager will persist their state during savepoint. If a Task