赞
踩
配置一个Configuration,然后通过StreamExecutionEnvironment.getExecutionEnvironment(configuration)传入。
例如:
Configuration configuration = new Configuration();
configuration.set(RestartStrategyOptions.RESTART_STRATEGY,"fixed-delay");
configuration.set(RestartStrategyOptions.RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS, 3);
configuration.set(RestartStrategyOptions.RESTART_STRATEGY_FIXED_DELAY_DELAY, Duration.ofMinutes(1));
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(configuration);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。