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.

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

2023-09-01 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

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

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