背景: 线上业务经常说flink任务每次改完业务过滤条件,时间窗口等配置都需要重启任务才能生效,时效性比较慢,业务会在重启的时候中断。 业务需要能随时动态更新配置参数, 并且能实时生效,不需要重启任务 具体处理方法在获取数据源后连接一个广播的配置流信息, 针对配置流信息,不进行具体的业务输出 具体代码: private static void rulesProcess(Rule rule) throws Exception { // StreamExecutionEnvironment env = EnvUtils.getEnv(SharingConstant.CHECK_POINT); StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); String taskName = SharingConstant.TASK_NAME+"_"+rule.getName(); // 组装配置流消费组名Id String configStreamKafkaGroupId =...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile