Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setStateBackend(new HashMapStateBackend())
 
EmbeddedRocksDBStateBackend rocksDB = new EmbeddedRocksDBStateBackend();
rocksDB.setOptionsFactory(/** blah **/);
 
env.setStateBackend(rocksDB);
 env.setDefaultSavepointDirectory("s3://savepoint");

env.getCheckpointConfig().setCheckpointLocationsetCheckpointStorage(new JobManagerSnapshot());
env.getCheckpointConfig().setCheckpointLocationsetCheckpointStorage(new FileSystemSnapshot("s3://checkpoints"));
env.getCheckpointConfig().setCheckpointLocationsetCheckpointStorage("s3://checkpoints");


Compatibility, Deprecation, and Migration Plan

...