- Configuration configuration = new Configuration();
- configuration.setString(RestOptions.BIND_PORT, "8081"); // 指定访问端口
- configuration.setString("execution.savepoint.path",
- "file:///C:\\Users\\GW570\\Desktop\\新建文件夹\\5489aadc703536c55e6e2b82e2ba7e30\\chk-152");
-
- StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(configuration);
-
- env.setStateBackend(new FsStateBackend("file:///C:\\Users\\GW00250570\\Desktop\\新建文件夹"));
-
- //重试及缓存设置
- env.enableCheckpointing(5000);
通过配置execution.savepoint.path 指定恢复点