How can I programmatically set RocksDBStateBackend?

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

How can I programmatically set RocksDBStateBackend?

kant kodali
Hi All,

How can I programmatically set RocksDBStateBackend? I did the following

Screen Shot 2020-02-27 at 4.53.38 AM.png

env.setStateBackend always shows deprecated. so what is the right way to do this in flink 1.10?

Thanks!


Reply | Threaded
Open this post in threaded view
|

Re: How can I programmatically set RocksDBStateBackend?

KristoffSC
Hi,
I had same case but with FsStateBackend.

Cast it to StateBackend type.
env.setStateBackend((StateBackend) new FsStateBackend("some/Path"));


I think this is some inconsistency in API.



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/