数据湖探索 DLI-开源Kafka输出流:示例

时间:2024-11-16 13:21:40

示例

将流kafka_sink的数据输出到Kafka中。

1
2
3
4
5
6
7
CREATE SINK STREAM kafka_sink (name STRING) 
  WITH (
    type="kafka",
    kafka_bootstrap_servers =  "ip1:port1,ip2:port2",
    kafka_topic = "testsink",
    encode = "json" 
  );
support.huaweicloud.com/sqlref-flink-dli/dli_08_0257.html