I am using FLink v.1.4.0
. I am using a QueryableStateStream
which I key in some way and then sink
it to create a Queryable State
, e.g:
stream.keyBy(0).asQueryableState("query-name");
That's all good as long as my Flink
job is running. As soon as the job is killed the state is no longer accessible.
I have two questions:
- How do I persist the queryable state? Can this be done at regular intervals like checkpointing? Should I use the Managed State solution instead?
- How can I initialise a
QueryableState
with data persisted from a previous execution?
I would appreciate practical examples for both questions. Thanks.