下面是Flink读取Kafka数据的代码,其中就有五种读取offset的方式,并配置相应的介绍
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.enableCheckpointing(5000);
env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);
env.setParallelism(1);
Properties props = new Properties();
props.setProperty