Checkpoint in FlinkSQL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Checkpoint in FlinkSQL

Shu Su
Hi All

Does current Flink support to set checkpoint properties while using Flink SQL ? 
For example,  statebackend choices, checkpoint interval and so on ...

Thanks,
SImon

Reply | Threaded
Open this post in threaded view
|

Re: Checkpoint in FlinkSQL

Yun Tang

Hi Simon

 

If you are using table API, you could set state backend via environment like `env.setStateBackend()`

 

If you just launch a cluster with SQL-client, you could configure state backend and checkpoint options [1] within `flink-conf.yaml` before launching the cluster .

 

[1] https://ci.apache.org/projects/flink/flink-docs-stable/ops/config.html#checkpointing

 

Best

Yun Tang

 

From: Simon Su <[hidden email]>
Date: Tuesday, November 5, 2019 at 10:38 AM
To: dev <[hidden email]>, user <[hidden email]>
Subject: Checkpoint in FlinkSQL

 

Hi All

 

Does current Flink support to set checkpoint properties while using Flink SQL ? 

For example,  statebackend choices, checkpoint interval and so on ...

 

Thanks,

SImon

 

Reply | Threaded
Open this post in threaded view
|

Re: Checkpoint in FlinkSQL

vino yang
In reply to this post by Shu Su
Hi Simon,

Absolutely, yes. Before using Flink SQL, you need to initialize a StreamExecutionEnvirnoment instance[1], then call 
StreamExecutionEnvirnoment#setStateBackend or StreamExecutionEnvirnoment#enableCheckpointing to specify the information what you want.


Best,
Vino

Simon Su <[hidden email]> 于2019年11月5日周二 上午10:38写道:
Hi All

Does current Flink support to set checkpoint properties while using Flink SQL ? 
For example,  statebackend choices, checkpoint interval and so on ...

Thanks,
SImon