????????????issues, Fix Version/s:None ??????????????????????????????????dataStream
------------------ ???????? ------------------ ??????: "??????"<[email protected]>; ????????: 2020??7??1??(??????) ????3:31 ??????: "user-zh"<[email protected]>;"????"<[email protected]>; ????: Re: flink sql ddl CREATE TABLE kafka011 sink ????????????exactly-once?? ??????????????????????????????????????https://issues.apache.org/jira/browse/FLINK-15221 ???? <[email protected]> ??2020??7??1?????? ????3:13?????? > ????,??????????????????Kafka011TableSourceSinkFactory??Kafka011TableSink??????exactly-once > > Kafka011TableSink > > > @Override > protected SinkFunction<Row> createKafkaProducer( > String topic, > Properties properties, > SerializationSchema<Row> serializationSchema, > Optional<FlinkKafkaPartitioner<Row>> partitioner) { > return new FlinkKafkaProducer011<>( > topic, > new KeyedSerializationSchemaWrapper<>(serializationSchema), > properties, > partitioner, > FlinkKafkaProducer011.Semantic.EXACTLY_ONCE, > 5); > } > ????????????????????,????????????KafkaTableSourceSinkFactoryBase > > ????: > https://jxeditor.github.io/2020/06/11/FlinkSQL%E5%9C%A8%E4%BD%BF%E7%94%A8%E5%88%9B%E5%BB%BA%E8%A1%A8%E8%AF%AD%E5%8F%A5%E6%97%B6%E7%9A%84%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90/ > ------------------------------------------------------------------ > ???????????????? <[email protected]> > ??????????2020??7??1??(??????) 14:33 > ????????user-zh <[email protected]> > ?? ????flink sql ddl CREATE TABLE kafka011 sink ????????????exactly-once?? > > &nbsp;flink sql CREATE TABLE kafka sink????????checkpoint????????????sql > sink????????????????????exactly-once?????????? ?? > ?????????? > Consistency guarantees: By default, a Kafka sink ingests data with > at-least-once guarantees into a Kafka topic if the query is executed with > checkpointing enabled.??&nbsp;&nbsp; > CREATE TABLE ?????? at-least-once > >
